'Ensure the public can only see approved jobs, but staff can view
all jobs'

def test_job_detail_security(self):

    response = self.client.get(self.job.get_absolute_url())
    self.assertEqual(response.status_code, 200)
    response = self.client.get(self.job_draft.get_absolute_url())
    self.assertEqual(response.status_code, 404)
    self.client.login(username=self.staff.username, password='password')
    response = self.client.get(self.job.get_absolute_url())
    self.assertEqual(response.status_code, 200)
    response = self.client.get(self.job_draft.get_absolute_url())
    self.assertEqual(response.status_code, 200)
