Exemple #1
0
 def test_find_identity_from_public_data(self, identity):
     id = StatusView.find_identity(identity.public_key)
     assert id == {
         'drop_url': identity.drop_url,
         'public_key': identity.public_key,
         'alias': identity.alias,
     }
Exemple #2
0
 def test_find_identity_from_public_data(self, identity):
     id = StatusView.find_identity(identity.public_key)
     assert id == {
         'drop_url': identity.drop_url,
         'public_key': identity.public_key,
         'alias': identity.alias,
     }
Exemple #3
0
 def test_find_identity_from_update_request(self, delete_request, email_entry, identity):
     pur = PendingUpdateRequest()
     pur.request = delete_request
     pur.save()
     identity.delete()
     id = StatusView.find_identity(identity.public_key)
     assert id == {
         'drop_url': identity.drop_url,
         'public_key': identity.public_key,
         'alias': identity.alias,
     }
Exemple #4
0
 def test_find_identity_from_update_request(self, delete_request,
                                            email_entry, identity):
     pur = PendingUpdateRequest()
     pur.request = delete_request
     pur.save()
     identity.delete()
     id = StatusView.find_identity(identity.public_key)
     assert id == {
         'drop_url': identity.drop_url,
         'public_key': identity.public_key,
         'alias': identity.alias,
     }
Exemple #5
0
 def test_find_identity_none(self, delete_request, email_entry, identity):
     identity.delete()
     id = StatusView.find_identity(identity.public_key)
     assert id is None
Exemple #6
0
 def test_find_identity_none(self, delete_request, email_entry, identity):
     identity.delete()
     id = StatusView.find_identity(identity.public_key)
     assert id is None