'A 404 status is returned by the page_not_found view'

def test_page_not_found(self):

    for url in self.nonexistent_urls:
        response = self.client.get(url)
        self.assertEqual(response.status_code, 404)
