Lines Matching refs:_factory
50 _factory = None # Overridden by subclasses to reuse tests variable in TestMailbox
56 self._box = self._factory(self._path)
144 self._box = self._factory(self._path, factory=rfc822.Message)
438 self._box = self._factory(self._path)
499 _factory = lambda self, path, factory=None: mailbox.Maildir(path, factory) member in TestMaildir
570 self._box = self._factory(self._path, factory=None)
586 self.assertEqual(self._box._factory, factory)
719 self._box = self._factory(self._path)
754 box = self._factory(self._path, factory=dummy_factory)
756 self.assertIs(folder._factory, dummy_factory)
759 self.assertIs(folder1_alias._factory, dummy_factory)
866 self._box = self._factory(self._path)
914 self._box = self._factory(self._path)
933 self._box = self._factory(self._path)
980 self._box = self._factory(self._path)
990 _factory = lambda self, path, factory=None: mailbox.mbox(path, factory) member in TestMbox
1037 _factory = lambda self, path, factory=None: mailbox.MMDF(path, factory) member in TestMMDF
1042 _factory = lambda self, path, factory=None: mailbox.MH(path, factory) member in TestMH
1057 self._box = self._factory(self._path, dummy_factory)
1069 self.assertIs(new_folder._factory, self._box._factory)
1070 self.assertIs(folder0._factory, self._box._factory)
1174 _factory = lambda self, path, factory=None: mailbox.Babyl(path, factory) member in TestBabyl
1203 _factory = mailbox.Message # Overridden by subclasses to reuse tests variable in TestMessage
1214 msg = self._factory(eMM)
1220 msg = self._factory(_sample_message)
1229 msg = self._factory(f)
1235 msg = self._factory()
1239 self.assertIsInstance(msg, self._factory)
1246 self.assertRaises(TypeError, lambda: self._factory(object()))
1251 msg = self._factory()
1258 msg = self._factory()
1274 _factory = mailbox.MaildirMessage variable in TestMaildirMessage
1349 _factory = mailbox._mboxMMDFMessage variable in _TestMboxMMDFMessage
1397 _factory = mailbox.mboxMessage variable in TestMboxMessage
1402 _factory = mailbox.MHMessage variable in TestMHMessage
1433 _factory = mailbox.BabylMessage variable in TestBabylMessage
1488 _factory = mailbox.MMDFMessage variable in TestMMDFMessage