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