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