• Home
  • Raw
  • Download

Lines Matching refs:_path

54         self._path = test_support.TESTFN
55 self._delete_recursively(self._path)
56 self._box = self._factory(self._path)
60 self._delete_recursively(self._path)
144 self._box = self._factory(self._path, factory=rfc822.Message)
438 self._box = self._factory(self._path)
459 return self._path + '.lock'
512 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' %
559 box = mailbox.Maildir(self._path, factory=FakeMessage)
567 self._box = mailbox.Maildir(self._path)
569 self._delete_recursively(self._path)
570 self._box = self._factory(self._path, factory=None)
577 os.mkdir(os.path.normpath(os.path.join(self._path, subdir)))
578 self._box = mailbox.Maildir(self._path)
580 self._box = mailbox.Maildir(self._path, factory=None)
585 self.assertEqual(self._box._path, os.path.abspath(self._path))
588 path = os.path.join(self._path, subdir)
606 self.assertTrue(os.path.isdir(os.path.join(self._path, '.foo.bar')))
632 foo_path = os.path.join(self._path, 'tmp', 'foo')
633 bar_path = os.path.join(self._path, 'tmp', 'bar')
662 self.assertEqual(head, os.path.abspath(os.path.join(self._path,
690 file_count = len(os.listdir(os.path.join(self._path, "tmp")))
719 self._box = self._factory(self._path)
736 os.remove(os.path.join(self._path, 'new', key0))
754 box = self._factory(self._path, factory=dummy_factory)
768 os.mkdir(os.path.join(self._path, 'cur', 'stray-dir'))
784 path = os.path.join(self._path, self._box._lookup(key))
799 path = os.path.join(subfolder._path, 'maildirfolder')
811 os.utime(os.path.join(self._box._path, subdir),
838 filename = os.path.join(self._path, 'cur', 'stray-file')
856 inode_before = os.stat(self._path).st_ino
861 inode_after = os.stat(self._path).st_ino
866 self._box = self._factory(self._path)
875 mode = os.stat(self._path).st_mode | 0o666
876 os.chmod(self._path, mode)
884 self.assertEqual(os.stat(self._path).st_mode, mode)
891 self._delete_recursively(self._path)
892 for lock_remnant in glob.glob(self._path + '.*'):
913 mtime = os.path.getmtime(self._path)
914 self._box = self._factory(self._path)
919 self.assertEqual(mtime, os.path.getmtime(self._path))
931 with open(self._path, 'rb') as f:
933 self._box = self._factory(self._path)
980 self._box = self._factory(self._path)
1001 os.unlink(self._path)
1002 self._box = mailbox.mbox(self._path, create=True)
1008 st = os.stat(self._path)
1025 with open(self._path) as f:
1030 with open(self._path) as f:
1057 self._box = self._factory(self._path, dummy_factory)
1062 self.assertTrue(os.path.isdir(os.path.join(self._path, 'foo.bar')))
1169 return os.path.join(self._path, '.mh_sequences.lock')
1178 self._delete_recursively(self._path)
1179 for lock_remnant in glob.glob(self._path + '.*'):
1206 self._path = test_support.TESTFN
1209 self._delete_recursively(self._path)
1226 with open(self._path, 'w+') as f:
1817 self._path = test_support.TESTFN
1818 self._file = open(self._path, 'wb+')
1822 self._delete_recursively(self._path)
1866 self._path = test_support.TESTFN
1867 self._file = open(self._path, 'wb+')
1871 self._delete_recursively(self._path)