def test_noPath(self):
        """
        The path of a I{URI} that has no path is the empty string.
        """
        uri = self.makeURIString(b'http://HOST')
        parsed = client.URI.fromBytes(uri)
        self.assertURIEquals(
            parsed,
            scheme=b'http',
            netloc=self.uriHost,
            host=self.host,
            port=80,
            path=b'')
        self.assertEqual(uri, parsed.toBytes())

        The path of a I{URI} that has no path is the empty string.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_webclient.py