Exemple #1
0
 def test_is_valid_other(self):
     self.assertTrue(is_valid_uri('/a/agd/'))
Exemple #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('//'))
Exemple #3
0
 def test_invalid_scheme(self):
     with self.assertRaises(ValidationError):
         is_valid_uri('ftp://')