def test_is_valid_other(self): self.assertTrue(is_valid_uri('/a/agd/'))
def test_is_valid_scheme(self): self.assertTrue(is_valid_uri('http://')) self.assertTrue(is_valid_uri('https://')) self.assertTrue(is_valid_uri('//'))
def test_invalid_scheme(self): with self.assertRaises(ValidationError): is_valid_uri('ftp://')