Skip to content

Commit

Permalink
feat(tests): Add manifest content type test
Browse files Browse the repository at this point in the history
  • Loading branch information
silviolleite committed Jul 1, 2020
1 parent a410a65 commit 257f2f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def test_get(self):
"""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')
Expand Down

0 comments on commit 257f2f2

Please sign in to comment.