'L{client.HTTPClientFactory.setURL} removes the fragment identifier from
the path component.'

def test_setURLRemovesFragment(self):

    f = client.HTTPClientFactory('http://example.com')
    url = 'https://foo.com:8443/bar;123?a#frag'
    f.setURL(url)
    self.assertEqual((url, 'https', 'foo.com', 8443, '/bar;123?a'), (f.url, f.scheme, f.host, f.port, f.path))
