'Test the method that handles getting the 2fa code'

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

    s = self.build_session()
    s.two_factor_auth_callback((lambda : 'fake'))
    args = ('GET', 'http://example.com')
    s.handle_two_factor_auth(args, {})
    request_mock.assert_called_once_with(headers={'X-GitHub-OTP': 'fake'}, *args)
