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