Lines Matching refs:_path

54         self._path = support.TESTFN
55 self._delete_recursively(self._path)
56 self._box = self._factory(self._path)
60 self._delete_recursively(self._path)
234 self._box = self._factory(self._path)
528 self._box = self._factory(self._path)
549 return self._path + '.lock'
598 self.assertEqual(os.listdir(os.path.join(self._path, 'tmp')), [])
606 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' %
653 box = mailbox.Maildir(self._path, factory=FakeMessage)
661 self._box = mailbox.Maildir(self._path)
663 self._delete_recursively(self._path)
664 self._box = self._factory(self._path, factory=None)
671 os.mkdir(os.path.normpath(os.path.join(self._path, subdir)))
672 self._box = mailbox.Maildir(self._path)
677 self.assertEqual(self._box._path, os.path.abspath(self._path))
680 path = os.path.join(self._path, subdir)
698 self.assertTrue(os.path.isdir(os.path.join(self._path, '.foo.bar')))
724 foo_path = os.path.join(self._path, 'tmp', 'foo')
725 bar_path = os.path.join(self._path, 'tmp', 'bar')
754 self.assertEqual(head, os.path.abspath(os.path.join(self._path,
782 file_count = len(os.listdir(os.path.join(self._path, "tmp")))
811 self._box = self._factory(self._path)
828 os.remove(os.path.join(self._path, 'new', key0))
846 box = self._factory(self._path, factory=dummy_factory)
860 os.mkdir(os.path.join(self._path, 'cur', 'stray-dir'))
875 path = os.path.join(self._path, self._box._lookup(key))
889 path = os.path.join(subfolder._path, 'maildirfolder')
901 os.utime(os.path.join(self._box._path, subdir),
928 filename = os.path.join(self._path, 'cur', 'stray-file')
945 inode_before = os.stat(self._path).st_ino
950 inode_after = os.stat(self._path).st_ino
955 self._box = self._factory(self._path)
964 mode = os.stat(self._path).st_mode | 0o666
965 os.chmod(self._path, mode)
973 self.assertEqual(os.stat(self._path).st_mode, mode)
981 self._delete_recursively(self._path)
982 for lock_remnant in glob.glob(glob.escape(self._path) + '.*'):
986 with open(self._path) as f:
1041 mtime = os.path.getmtime(self._path)
1042 self._box = self._factory(self._path)
1047 self.assertEqual(mtime, os.path.getmtime(self._path))
1059 with open(self._path, 'rb') as f:
1061 self._box = self._factory(self._path)
1108 self._box = self._factory(self._path)
1128 os.unlink(self._path)
1129 self._box = mailbox.mbox(self._path, create=True)
1135 st = os.stat(self._path)
1152 with open(self._path) as f:
1157 with open(self._path) as f:
1172 self.assertEqual(os.listdir(self._path), ['.mh_sequences'])
1187 self._box = self._factory(self._path, dummy_factory)
1192 self.assertTrue(os.path.isdir(os.path.join(self._path, 'foo.bar')))
1299 return os.path.join(self._path, '.mh_sequences.lock')
1307 with open(self._path) as f:
1313 self._delete_recursively(self._path)
1314 for lock_remnant in glob.glob(glob.escape(self._path) + '.*'):
1372 self._path = support.TESTFN
1375 self._delete_recursively(self._path)
1392 with open(self._path, 'w+') as f:
1401 with open(self._path, 'wb+') as f:
2022 self._path = support.TESTFN
2023 self._file = open(self._path, 'wb+')
2027 self._delete_recursively(self._path)
2071 self._path = support.TESTFN
2072 self._file = open(self._path, 'wb+')
2076 self._delete_recursively(self._path)