MCPcopy Index your code
hub / github.com/python/cpython / test_empty_maildir

Method test_empty_maildir

Lib/test/test_mailbox.py:2370–2378  ·  view source on GitHub ↗

Test an empty maildir mailbox

(self)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected