def _validate_credential_list(self, retrieved_credentials, expected_credentials):
    self.assertEqual(len(expected_credentials), len(retrieved_credentials))
    retrieved_ids = [c['id'] for c in retrieved_credentials]
    for cred in expected_credentials:
        self.assertIn(cred['id'], retrieved_ids)
def _validate_credential_list(self, retrieved_credentials, expected_credentials):
    self.assertEqual(len(expected_credentials), len(retrieved_credentials))
    retrieved_ids = [c['id'] for c in retrieved_credentials]
    for cred in expected_credentials:
        self.assertIn(cred['id'], retrieved_ids)