def test_job_details_with_results(self):
        """Job with results is displayed properly"""
        queue = get_queue('default')
        job = queue.enqueue(access_self)
        queue_index = get_queue_index('default')        
        worker = get_worker('default')
        worker.work(burst=True)
        result = job.results()[0]
        url = reverse('rq_job_detail', args=[queue_index, job.id])
        response = self.client.get(url)
        assert result.id
        self.assertContains(response, result.id)
Job with results is displayed properly
django_rq/tests/test_views.py