MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_empty_maildir

Method test_empty_maildir

Lib/test/test_mailbox.py:2355–2363  ·  view source on GitHub ↗

Test an empty maildir mailbox

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected