feat(tests): Add manifest content type test

This commit is contained in:
Silvio Leite
2020-07-01 19:03:52 -03:00
parent a410a6575a
commit 257f2f2922

View File

@@ -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')