Test an empty maildir mailbox
(self)
| 2368 | return tmpname |
| 2369 | |
| 2370 | def test_empty_maildir(self): |
| 2371 | """Test an empty maildir mailbox""" |
| 2372 | # Test for regression on bug #117490: |
| 2373 | # Make sure the boxes attribute actually gets set. |
| 2374 | self.mbox = mailbox.Maildir(os_helper.TESTFN) |
| 2375 | #self.assertHasAttr(self.mbox, "boxes") |
| 2376 | #self.assertEqual(len(self.mbox.boxes), 0) |
| 2377 | self.assertIsNone(self.mbox.next()) |
| 2378 | self.assertIsNone(self.mbox.next()) |
| 2379 | |
| 2380 | def test_nonempty_maildir_cur(self): |
| 2381 | self.createMessage("cur") |
nothing calls this directly
no test coverage detected