def test_saves_pending_deletion_request_when_new(self):
    pending_deletion_request = wipeout_domain.PendingDeletionRequest.create_default(self.user_1_id, self.USER_1_EMAIL, self.user_1_role)
    wipeout_service.save_pending_deletion_requests([pending_deletion_request])
    pending_deletion_request_model = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id)
    self.assertEqual(pending_deletion_request_model.id, self.user_1_id)
    self.assertEqual(pending_deletion_request_model.email, self.USER_1_EMAIL)
    self.assertEqual(pending_deletion_request_model.deletion_complete, False)
    self.assertEqual(pending_deletion_request_model.pseudonymizable_entity_mappings, {})
def test_saves_pending_deletion_request_when_new(self):
    pending_deletion_request = wipeout_domain.PendingDeletionRequest.create_default(self.user_1_id, self.USER_1_EMAIL, self.user_1_role)
    wipeout_service.save_pending_deletion_requests([pending_deletion_request])
    pending_deletion_request_model = user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id)
    self.assertEqual(pending_deletion_request_model.id, self.user_1_id)
    self.assertEqual(pending_deletion_request_model.email, self.USER_1_EMAIL)
    self.assertEqual(pending_deletion_request_model.deletion_complete, False)
    self.assertEqual(pending_deletion_request_model.pseudonymizable_entity_mappings, {})