def _test_unsupported_exception(self, url): with self.assertRaises(KittyException): kurl.url_from_string(url)
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)