def test_zipArchiveRepr(self):
        """
        Make sure that invoking ZipArchive's repr prints the correct class
        name and an absolute path to the zip file.
        """
        path = ZipArchive(self.nativecmn + '.zip')
        pathRepr = 'ZipArchive(%r)' % (os.path.abspath(
            self.nativecmn + '.zip'),)

        # Check for an absolute path
        self.assertEqual(repr(path), pathRepr)

        # Create a path to the file rooted in the current working directory
        relativeCommon = self.nativecmn.replace(os.getcwd() + os.sep,
                                                "", 1) + ".zip"
        relpath = ZipArchive(relativeCommon)

        # Check using a path without the cwd prepended
        self.assertEqual(repr(relpath), pathRepr)

        Make sure that invoking ZipArchive's repr prints the correct class
        name and an absolute path to the zip file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_zippath.py