Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_clean_url(self):
"""Test return code from utils.clean_url."""
self.assertEqual('www.foo.bar', clean_url('http://www.foo.bar/'))
self.assertEqual('www.foo.bar', clean_url('https://www.foo.bar'))
def test_clean_url(self):
"""Test return code from utils.clean_url."""
self.assertEqual('www.foo.bar', clean_url('http://www.foo.bar/'))
self.assertEqual('www.foo.bar', clean_url('https://www.foo.bar'))