'Verify the request for user logging in.'

def test_login(self):

    self.instance.login('user', 'password')
    self.session.basic_auth.assert_called_once_with('user', 'password')
    self.session.two_factor_auth_callback.assert_called_once_with(None)
