def test_hereString(self):
        """
        Calling C{str()} with a C{URLPath.here()} will return a URL which is
        the URL that it was instantiated with, without any file, query, or
        fragment.
        """
        # .here() should be equivalent to '.'
        self.assertEqual(str(self.path.here()), 'http://example.com/foo/')
        self.assertEqual(str(self.path.here(keepQuery=True)),
                         'http://example.com/foo/?yes=no&no=yes')
        self.assertEqual(str(self.path.child(b'').here()),
                         'http://example.com/foo/bar/')

        Calling C{str()} with a C{URLPath.here()} will return a URL which is
        the URL that it was instantiated with, without any file, query, or
        fragment.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_urlpath.py