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