Home | History | Annotate | Download | only in test

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)
439 self._box = self._factory(self._path)
460 return self._path + '.lock'
513 self.assertTrue(os.path.exists(os.path.join(self._path, 'cur', '%s%sfoo' %
560 box = mailbox.Maildir(self._path, factory=FakeMessage)
568 self._box = mailbox.Maildir(self._path)
570 self._delete_recursively(self._path)
571 self._box = self._factory(self._path, factory=None)
578 os.mkdir(os.path.normpath(os.path.join(self._path, subdir)))
579 self._box = mailbox.Maildir(self._path)
581 self._box = mailbox.Maildir(self._path, factory=None)
586 self.assertEqual(self._box._path, os.path.abspath(self._path))
589 path = os.path.join(self._path, subdir)
607 self.assertTrue(os.path.isdir(os.path.join(self._path, '.foo.bar')))
633 foo_path = os.path.join(self._path, 'tmp', 'foo')
634 bar_path = os.path.join(self._path, 'tmp', 'bar')
663 self.assertEqual(head, os.path.abspath(os.path.join(self._path,
691 file_count = len(os.listdir(os.path.join(self._path, "tmp")))
720 self._box = self._factory(self._path)
737 os.remove(os.path.join(self._path, 'new', key0))
755 box = self._factory(self._path, factory=dummy_factory)
769 os.mkdir(os.path.join(self._path, 'cur', 'stray-dir'))
785 path = os.path.join(self._path, self._box._lookup(key))
801 path = os.path.join(subfolder._path, 'maildirfolder')
813 os.utime(os.path.join(self._box._path, subdir),
840 filename = os.path.join(self._path, 'cur', 'stray-file')
858 inode_before = os.stat(self._path).st_ino
863 inode_after = os.stat(self._path).st_ino
868 self._box = self._factory(self._path)
877 mode = os.stat(self._path).st_mode | 0o666
878 os.chmod(self._path, mode)
886 self.assertEqual(os.stat(self._path).st_mode, mode)
893 self._delete_recursively(self._path)
894 for lock_remnant in glob.glob(self._path + '.*'):
915 mtime = os.path.getmtime(self._path)
916 self._box = self._factory(self._path)
921 self.assertEqual(mtime, os.path.getmtime(self._path))
933 with open(self._path, 'rb') as f:
935 self._box = self._factory(self._path)
982 self._box = self._factory(self._path)
1002 os.unlink(self._path)
1003 self._box = mailbox.mbox(self._path, create=True)
1009 st = os.stat(self._path)
1026 with open(self._path) as f:
1031 with open(self._path) as f:
1058 self._box = self._factory(self._path, dummy_factory)
1063 self.assertTrue(os.path.isdir(os.path.join(self._path, 'foo.bar')))
1170 return os.path.join(self._path, '.mh_sequences.lock')
1179 self._delete_recursively(self._path)
1180 for lock_remnant in glob.glob(self._path + '.*'):
1207 self._path = test_support.TESTFN
1210 self._delete_recursively(self._path)
1227 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)