TwitterNetworkLayerTests/TNLPseudoRequestOperationTest.m [104:131]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    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, TNLRequestOperationStateSucceeded);

    XCTAssertEqual(200, response.info.statusCode);
    XCTAssertTrue(response.info.data.length > 0);
    XCTAssertEqual(1.0, op.downloadProgress);
    XCTAssertEqual(1.0, op.uploadProgress);
    XCTAssertNil(response.operationError);
    XCTAssertEqual(response, op.response);

#if ENABLE_TIMING_TESTS
    XCTAssertEqualWithAccuracy(response.metrics.queuedDuration, 0.0, TIME_BUFFER);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



TwitterNetworkLayerTests/TNLPseudoRequestOperationTest.m [203:230]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    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, TNLRequestOperationStateSucceeded);

    XCTAssertEqual(200, response.info.statusCode);
    XCTAssertTrue(response.info.data.length > 0);
    XCTAssertEqual(1.0, op.downloadProgress);
    XCTAssertEqual(1.0, op.uploadProgress);
    XCTAssertNil(response.operationError);
    XCTAssertEqual(response, op.response);

#if ENABLE_TIMING_TESTS
    XCTAssertEqualWithAccuracy(response.metrics.queuedDuration, 0.0, TIME_BUFFER);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



