def test_parse_domain(): """Test domain parsing.""" url = 'http://www.example.com/0351/content' domain = 'http://www.example.com/' assert parse_domain(url) == domain