Beispiel #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
Beispiel #2
0
 def test_api_verifier_list_requests(self):
     self.assertIsNotNone(api.verifier_list_requests()['result'])
Beispiel #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'])
Beispiel #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)
Beispiel #5
0
 def test_api_verifier_list_requests(self):
     self.assertIsNotNone(api.verifier_list_requests()['result'])
Beispiel #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'])