Ejemplo n.º 1
0
    def get_identities(self, status=Identity.STATUS_AWAITING_PROCESSING):
        """gets requests by status"""

        response = api.verifier_list_requests(status)
        results = []
        if 'result' in response:
            results = [Identity(r) for r in response['result']]

        return results
Ejemplo n.º 2
0
 def test_api_verifier_list_requests(self):
     self.assertIsNotNone(api.verifier_list_requests()['result'])
Ejemplo n.º 3
0
 def test_api_verifier_peek_request(self):
     create_request()
     request_id = api.verifier_list_requests()['result'][0]['id']
     response = api.verifier_peek_request(request_id)
     self.assertFalse("error" in response)
     self.assertIsNotNone(response['result'])
Ejemplo n.º 4
0
 def test_get_identity(self):
     api.debug_create_test_request(1)
     result = api.verifier_list_requests()
     id = self.db.get_identity(result['result'][0]['id'])
     print(id)
     self.assertIsNotNone(id)
Ejemplo n.º 5
0
 def test_api_verifier_list_requests(self):
     self.assertIsNotNone(api.verifier_list_requests()['result'])
Ejemplo n.º 6
0
 def test_api_verifier_peek_request(self):
     create_request()
     request_id = api.verifier_list_requests()['result'][0]['id']
     response = api.verifier_peek_request(request_id)
     self.assertFalse("error" in response)
     self.assertIsNotNone(response['result'])