Esempio n. 1
0
 def test_raises_invalid_if_no_scheme(self):
     url = "myserver/feeling.html#anchor"
     self.assertRaises(colander.Invalid, schema.URL().deserialize, url)
Esempio n. 2
0
 def test_supports_full_url(self):
     url = "https://*****:*****@myserver:9999/feeling.html#anchor"
     deserialized = schema.URL().deserialize(url)
     self.assertEqual(deserialized, url)