'Ensure translation deletion doesn\'t cascade up to main project'

def test_translation_delete(self):

    project_keep = get(Project)
    project_delete = get(Project)
    project_delete.translations.add(project_keep)
    self.assertTrue(Project.objects.filter(pk=project_keep.pk).exists())
    self.assertTrue(Project.objects.filter(pk=project_delete.pk).exists())
    self.assertEqual(Project.objects.get(pk=project_keep.pk).main_language_project, project_delete)
    project_delete.delete()
    self.assertFalse(Project.objects.filter(pk=project_delete.pk).exists())
    self.assertTrue(Project.objects.filter(pk=project_keep.pk).exists())
    self.assertIsNone(Project.objects.get(pk=project_keep.pk).main_language_project)
