Lines Matching refs:path
654 path = FakePath(TESTFN)
655 self.addCleanup(unlink, path)
656 self.assertFalse(os.path.exists(path))
657 with contextlib.closing(sqlite.connect(path)) as cx:
658 self.assertTrue(os.path.exists(path))
666 path = TESTFN_UNDECODABLE
667 self.addCleanup(unlink, path)
668 self.assertFalse(os.path.exists(path))
669 with contextlib.closing(sqlite.connect(path)) as cx:
670 self.assertTrue(os.path.exists(path))
674 path = TESTFN
675 self.addCleanup(unlink, path)
676 uri = "file:" + urllib.parse.quote(os.fsencode(path))
677 self.assertFalse(os.path.exists(path))
679 self.assertTrue(os.path.exists(path))
683 path = TESTFN
684 self.addCleanup(unlink, path)
685 uri = "file:" + path
686 self.assertFalse(os.path.exists(path))
688 self.assertTrue(os.path.exists(path))
692 path = TESTFN
693 self.addCleanup(unlink, path)
694 uri = "file:" + urllib.parse.quote(os.fsencode(path)) + "?mode=ro"
695 self.assertFalse(os.path.exists(path))
699 self.assertFalse(os.path.exists(path))
700 sqlite.connect(path).close()
701 self.assertTrue(os.path.exists(path))
712 path = TESTFN_UNDECODABLE
713 self.addCleanup(unlink, path)
714 uri = "file:" + urllib.parse.quote(path)
715 self.assertFalse(os.path.exists(path))
717 self.assertTrue(os.path.exists(path))