Пример #1
0
 def contact_url_with_protocol(self):
     return ensure_protocol(self.contact_url)
Пример #2
0
 def website_with_protocol(self):
     return ensure_protocol(self.website)
Пример #3
0
def test_ensure_protocol(input, expected):
    assert utils.ensure_protocol(input) == expected
Пример #4
0
 def contact_url_with_protocol(self):
     return ensure_protocol(self.contact_url)
Пример #5
0
 def website_with_protocol(self):
     return ensure_protocol(self.website)
Пример #6
0
def test_ensure_protocol(input, expected):
    assert utils.ensure_protocol(input) == expected