Пример #1
0
    def auth_result_response_before_challenge(self):
        """
        Tests responding to a failure due to response before challenge error
        """
        client = RSAClient(self.priv_key)
        remote = RemoteProxy()

        client.auth_result(0, remote)

        #verify that auth_response got called
        self.assertEqual(remote.func, 'auth_challenge', 'Calling auth_response before auth_challegne should trigger auth_response call on server')