'Ensure custom 404 is set to 5 minutes'

def test_custom_404(self):

    response = self.client.get('/foo-bar/baz/9876')
    self.assertEqual(response.status_code, 404)
    self.assertEqual(response['Cache-Control'], 'max-age=300')
    self.assertTemplateUsed('404.html')
    self.assertContains(response, 'Try    using    the    search    box.', status_code=404)
