Exemple #1
0
 def test_ok_https(self):
     compare(
         valid_url('https://www.happy.com'),
         True,
         )
Exemple #2
0
 def test_bad_scheme(self):
     compare(
         valid_url('ftp://www.example.com'),
         'This is not a valid url',
         )
Exemple #3
0
 def test_ok_no_scheme(self):
     compare(
         valid_url('www.example.com'),
         True,
         )
Exemple #4
0
 def test_no_dotcom(self):
     compare(
         valid_url('http://nodotcom'),
         'This is not a valid url'
         )