Пример #1
0
 def test_check_content_type_foo(self):
     hdr = 'application/foo'
     self.assertEqual(utils.check_accept_header(hdr), None)
Пример #2
0
 def test_check_content_type_json(self):
     hdr = 'application/json'
     self.assertEqual(utils.check_accept_header(hdr), 'json')