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