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, }
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, }
def test_find_identity_none(self, delete_request, email_entry, identity): identity.delete() id = StatusView.find_identity(identity.public_key) assert id is None