• Home
  • Raw
  • Download

Lines Matching refs:_path

55         self._path = os_helper.TESTFN
56 self._delete_recursively(self._path)
57 self._box = self._factory(self._path)
61 self._delete_recursively(self._path)
235 self._box = self._factory(self._path)
529 self._box = self._factory(self._path)
550 return self._path + '.lock'
599 self.assertEqual(os.listdir(os.path.join(self._path, 'tmp')), [])
607 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' %
654 box = mailbox.Maildir(self._path, factory=FakeMessage)
662 self._box = mailbox.Maildir(self._path)
664 self._delete_recursively(self._path)
665 self._box = self._factory(self._path, factory=None)
672 os.mkdir(os.path.normpath(os.path.join(self._path, subdir)))
673 self._box = mailbox.Maildir(self._path)
678 self.assertEqual(self._box._path, os.path.abspath(self._path))
681 path = os.path.join(self._path, subdir)
699 self.assertTrue(os.path.isdir(os.path.join(self._path, '.foo.bar')))
725 foo_path = os.path.join(self._path, 'tmp', 'foo')
726 bar_path = os.path.join(self._path, 'tmp', 'bar')
755 self.assertEqual(head, os.path.abspath(os.path.join(self._path,
783 file_count = len(os.listdir(os.path.join(self._path, "tmp")))
812 self._box = self._factory(self._path)
829 os.remove(os.path.join(self._path, 'new', key0))
847 box = self._factory(self._path, factory=dummy_factory)
861 os.mkdir(os.path.join(self._path, 'cur', 'stray-dir'))
876 path = os.path.join(self._path, self._box._lookup(key))
890 path = os.path.join(subfolder._path, 'maildirfolder')
902 os.utime(os.path.join(self._box._path, subdir),
929 filename = os.path.join(self._path, 'cur', 'stray-file')
946 inode_before = os.stat(self._path).st_ino
951 inode_after = os.stat(self._path).st_ino
956 self._box = self._factory(self._path)
965 mode = os.stat(self._path).st_mode | 0o666
966 os.chmod(self._path, mode)
974 self.assertEqual(os.stat(self._path).st_mode, mode)
982 self._delete_recursively(self._path)
983 for lock_remnant in glob.glob(glob.escape(self._path) + '.*'):
987 with open(self._path, 'rb') as f:
1042 mtime = os.path.getmtime(self._path)
1043 self._box = self._factory(self._path)
1048 self.assertEqual(mtime, os.path.getmtime(self._path))
1060 with open(self._path, 'rb') as f:
1062 self._box = self._factory(self._path)
1109 self._box = self._factory(self._path)
1129 os.unlink(self._path)
1130 self._box = mailbox.mbox(self._path, create=True)
1136 st = os.stat(self._path)
1153 with open(self._path, encoding='utf-8') as f:
1158 with open(self._path, encoding='utf-8') as f:
1173 self.assertEqual(os.listdir(self._path), ['.mh_sequences'])
1188 self._box = self._factory(self._path, dummy_factory)
1193 self.assertTrue(os.path.isdir(os.path.join(self._path, 'foo.bar')))
1300 return os.path.join(self._path, '.mh_sequences.lock')
1308 with open(self._path, 'rb') as f:
1314 self._delete_recursively(self._path)
1315 for lock_remnant in glob.glob(glob.escape(self._path) + '.*'):
1373 self._path = os_helper.TESTFN
1376 self._delete_recursively(self._path)
1393 with open(self._path, 'w+', encoding='utf-8') as f:
1402 with open(self._path, 'wb+') as f:
2023 self._path = os_helper.TESTFN
2024 self._file = open(self._path, 'wb+')
2028 self._delete_recursively(self._path)
2072 self._path = os_helper.TESTFN
2073 self._file = open(self._path, 'wb+')
2077 self._delete_recursively(self._path)