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