def test_should_fail_unsupported_content_type(self): req = FakeRequest('test/plain') self.assertRaises(falcon.HTTPUnsupportedMediaType, vm._validate_content_type, req)