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'))
876 path = os.path.join(self._path, self._box._lookup(key))
891 path = os.path.join(subfolder._path, 'maildirfolder')
903 os.utime(os.path.join(self._box._path, subdir),
930 filename = os.path.join(self._path, 'cur', 'stray-file')
947 inode_before = os.stat(self._path).st_ino
952 inode_after = os.stat(self._path).st_ino
957 self._box = self._factory(self._path)
966 mode = os.stat(self._path).st_mode | 0o666
967 os.chmod(self._path, mode)
975 self.assertEqual(os.stat(self._path).st_mode, mode)
983 self._delete_recursively(self._path)
984 for lock_remnant in glob.glob(self._path + '.*'):
988 with open(self._path) as f:
1015 mtime = os.path.getmtime(self._path)
1016 self._box = self._factory(self._path)
1021 self.assertEqual(mtime, os.path.getmtime(self._path))
1033 with open(self._path, 'rb') as f:
1035 self._box = self._factory(self._path)
1082 self._box = self._factory(self._path)
1103 os.unlink(self._path)
1104 self._box = mailbox.mbox(self._path, create=True)
1110 st = os.stat(self._path)
1127 with open(self._path) as f:
1132 with open(self._path) as f:
1147 self.assertEqual(os.listdir(self._path), ['.mh_sequences'])
1162 self._box = self._factory(self._path, dummy_factory)
1167 self.assertTrue(os.path.isdir(os.path.join(self._path, 'foo.bar')))
1274 return os.path.join(self._path, '.mh_sequences.lock')
1282 with open(self._path) as f:
1288 self._delete_recursively(self._path)
1289 for lock_remnant in glob.glob(self._path + '.*'):
1347 self._path = support.TESTFN
1350 self._delete_recursively(self._path)
1367 with open(self._path, 'w+') as f:
1376 with open(self._path, 'wb+') as f:
1997 self._path = support.TESTFN
1998 self._file = open(self._path, 'wb+')
2002 self._delete_recursively(self._path)
2046 self._path = support.TESTFN
2047 self._file = open(self._path, 'wb+')
2051 self._delete_recursively(self._path)