Beispiel #1
0
 def test_is_valid_other(self):
     self.assertTrue(is_valid_uri('/a/agd/'))
Beispiel #2
0
 def test_is_valid_scheme(self):
     self.assertTrue(is_valid_uri('http://'))
     self.assertTrue(is_valid_uri('https://'))
     self.assertTrue(is_valid_uri('//'))
Beispiel #3
0
 def test_invalid_scheme(self):
     with self.assertRaises(ValidationError):
         is_valid_uri('ftp://')