Test an empty maildir mailbox
(self)
| 2353 | return tmpname |
| 2354 | |
| 2355 | def test_empty_maildir(self): |
| 2356 | """Test an empty maildir mailbox""" |
| 2357 | # Test for regression on bug #117490: |
| 2358 | # Make sure the boxes attribute actually gets set. |
| 2359 | self.mbox = mailbox.Maildir(os_helper.TESTFN) |
| 2360 | #self.assertHasAttr(self.mbox, "boxes") |
| 2361 | #self.assertEqual(len(self.mbox.boxes), 0) |
| 2362 | self.assertIsNone(self.mbox.next()) |
| 2363 | self.assertIsNone(self.mbox.next()) |
| 2364 | |
| 2365 | def test_nonempty_maildir_cur(self): |
| 2366 | self.createMessage("cur") |
nothing calls this directly
no test coverage detected