def test_submit_job_to_worker(self):
    Submission.objects.filter(status=self.submission.status).update(status='finished')
    queryset = Submission.objects.filter(status='finished')
    self.app_admin.submit_job_to_worker(request, queryset)
    self.assertEqual(Submission.objects.filter(status='submitted').count(), 1)
def test_submit_job_to_worker(self):
    Submission.objects.filter(status=self.submission.status).update(status='finished')
    queryset = Submission.objects.filter(status='finished')
    self.app_admin.submit_job_to_worker(request, queryset)
    self.assertEqual(Submission.objects.filter(status='submitted').count(), 1)