def test_url_with_protocol_path(self): url = 'example.com/path.html' url = url_with_protocol(url) self.assertEquals(url, 'http://example.com/path.html')
def test_url_with_protocol_http(self): url = 'http://www.example.com' url = url_with_protocol(url) self.assertEquals(url, 'http://www.example.com')