def test_gets_pending_deletion_request(self):
    wipeout_service.save_pending_deletion_requests([wipeout_domain.PendingDeletionRequest.create_default(self.user_1_id, self.USER_1_EMAIL, self.user_1_role)])
    pending_deletion_request = wipeout_service.get_pending_deletion_request(self.user_1_id)
    self.assertEqual(pending_deletion_request.user_id, self.user_1_id)
    self.assertEqual(pending_deletion_request.email, self.USER_1_EMAIL)
    self.assertEqual(pending_deletion_request.deletion_complete, False)
    self.assertEqual(pending_deletion_request.pseudonymizable_entity_mappings, {})
def test_gets_pending_deletion_request(self):
    wipeout_service.save_pending_deletion_requests([wipeout_domain.PendingDeletionRequest.create_default(self.user_1_id, self.USER_1_EMAIL, self.user_1_role)])
    pending_deletion_request = wipeout_service.get_pending_deletion_request(self.user_1_id)
    self.assertEqual(pending_deletion_request.user_id, self.user_1_id)
    self.assertEqual(pending_deletion_request.email, self.USER_1_EMAIL)
    self.assertEqual(pending_deletion_request.deletion_complete, False)
    self.assertEqual(pending_deletion_request.pseudonymizable_entity_mappings, {})