Exemple #1
0
 def test_complex(self):
     self.assertEqual(
         rest.ContentTypeParser(
             "application/json; Charset=UTF-8").gettype(),
         "application/json")
Exemple #2
0
 def test_text(self):
     self.assertEqual(
         rest.ContentTypeParser("text/plain; Charset=UTF-8").gettype(),
         "text/plain")
Exemple #3
0
 def test_simple(self):
     self.assertEqual(
         rest.ContentTypeParser("application/json").gettype(),
         "application/json")