'Test that request does not try to handle 2fa when it should not'

@mock.patch.object(requests.Session, 'request')
def test_request_ignores_responses_that_do_not_require_2fa(self, request_mock):

    response = mock.Mock()
    response.configure_mock(status_code=200, headers={})
    request_mock.return_value = response
    s = self.build_session()
    s.two_factor_auth_callback((lambda : 'fake'))
    r = s.get('http://example.com')
    assert (r is response)
    request_mock.assert_called_once_with('GET', 'http://example.com', allow_redirects=True)
