TwitterNetworkLayerTests/TNLPseudoRequestOperationTest.m [627:645]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    [self registerCannedResponseWithConfig:pseudoConfig];
    op = [TNLRequestOperation operationWithRequest:mRequest configuration:mConfig delegate:self];
    expect = [self expectationForNotification:@"Complete" object:op handler:^BOOL(NSNotification *notification) {
        response = notification.userInfo[@"response"];
        return YES;
    }];

    XCTAssertFalse(op.isCancelled);
    XCTAssertFalse(op.isFinished);
    XCTAssertFalse(op.isExecuting);
    XCTAssertEqual(op.state, TNLRequestOperationStateIdle);

    [sQueue enqueueRequestOperation:op];
    [self waitForExpectationsWithTimeout:5.0 handler:nil];

    XCTAssertFalse(op.isCancelled);
    XCTAssertFalse(op.isExecuting);
    XCTAssertTrue(op.isFinished);
    XCTAssertEqual(op.state, TNLRequestOperationStateFailed);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



TwitterNetworkLayerTests/TNLPseudoRequestOperationTest.m [676:694]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    [self registerCannedResponseWithConfig:pseudoConfig];
    op = [TNLRequestOperation operationWithRequest:mRequest configuration:mConfig delegate:self];
    expect = [self expectationForNotification:@"Complete" object:op handler:^BOOL(NSNotification *notification) {
        response = notification.userInfo[@"response"];
        return YES;
    }];

    XCTAssertFalse(op.isCancelled);
    XCTAssertFalse(op.isFinished);
    XCTAssertFalse(op.isExecuting);
    XCTAssertEqual(op.state, TNLRequestOperationStateIdle);

    [sQueue enqueueRequestOperation:op];
    [self waitForExpectationsWithTimeout:5.0 handler:nil];

    XCTAssertFalse(op.isCancelled);
    XCTAssertFalse(op.isExecuting);
    XCTAssertTrue(op.isFinished);
    XCTAssertEqual(op.state, TNLRequestOperationStateFailed);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



