def test_includes_live_jobs(self): job = make_job_listing_page('Job', live=True) qs = JobListingTable().get_queryset({}) self.assertTrue(qs.exists()) self.assertEqual(job.title, qs[0].title)
def test_excludes_draft_jobs(self): make_job_listing_page('Job', live=False) qs = JobListingTable().get_queryset({}) self.assertFalse(qs.exists())