def test_make_submission_private(self):
    Submission.objects.filter(is_public=False).update(is_public=True)
    queryset = Submission.objects.filter(is_public=True)
    self.app_admin.make_submission_private(request, queryset)
    self.assertEqual(Submission.objects.filter(is_public=False).count(), 1)
def test_make_submission_private(self):
    Submission.objects.filter(is_public=False).update(is_public=True)
    queryset = Submission.objects.filter(is_public=True)
    self.app_admin.make_submission_private(request, queryset)
    self.assertEqual(Submission.objects.filter(is_public=False).count(), 1)