def test_parse_url_lowercase_host(): """Test we update empty paths.""" assert indieauth._parse_url('http://ex.com/hello').path == '/hello' assert indieauth._parse_url('http://EX.COM/hello').hostname == 'ex.com' parts = indieauth._parse_url('http://EX.COM:123/HELLO') assert parts.netloc == 'ex.com:123' assert parts.path == '/HELLO'
def test_parse_url_lowercase_host(): """Test we update empty paths.""" assert indieauth._parse_url("http://ex.com/hello").path == "/hello" assert indieauth._parse_url("http://EX.COM/hello").hostname == "ex.com" parts = indieauth._parse_url("http://EX.COM:123/HELLO") assert parts.netloc == "ex.com:123" assert parts.path == "/HELLO"
def test_parse_url_path(): """Test we update empty paths.""" assert indieauth._parse_url('http://ex.com').path == '/'