Esempio n. 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,
     }
Esempio n. 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,
     }
Esempio n. 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,
     }
Esempio n. 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,
     }
Esempio n. 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
Esempio n. 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