示例#1
0
 def _test_unsupported_exception(self, url):
     with self.assertRaises(KittyException):
         kurl.url_from_string(url)
示例#2
0
 def _test_vanilla_supported(self, url, expected_class):
     container = kurl.url_from_string(url)
     self.assertEqual(type(container), expected_class)
     rendered = container.render().tobytes()
     self.assertEqual(url, rendered)