'Verify only authenticated users can access the view.'

def test_authentication_required(self):

    self.client.logout()
    response = self.client.get(self.path, content_type=JSON_CONTENT_TYPE)
    self.assertEqual(response.status_code, 401)
