Exemple #1
0
 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')
Exemple #2
0
 def test_url_with_protocol_http(self):
     url = 'http://www.example.com'
     url = url_with_protocol(url)
     self.assertEquals(url, 'http://www.example.com')