From 257f2f292204e8aba8c46f4b9f164f9f0e665066 Mon Sep 17 00:00:00 2001 From: Silvio Leite Date: Wed, 1 Jul 2020 19:03:52 -0300 Subject: [PATCH] feat(tests): Add manifest content type test --- tests/test_view.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_view.py b/tests/test_view.py index b9383b7..b275142 100644 --- a/tests/test_view.py +++ b/tests/test_view.py @@ -19,6 +19,10 @@ class ManifestTest(TestCase): """GET /manifest.json Should return status code 200""" self.assertEqual(self.response.status_code, 200) + def test_content_type_json(self): + """The content type Must be JSON""" + self.assertEqual(self.response['content-type'], 'application/json') + def test_template(self): """Must have the template manifest.json""" self.assertTemplateUsed(self.response, 'manifest.json')