MCPcopy
hub / github.com/OfflineIMAP/offlineimap / test_02_createdir

Method test_02_createdir

test/tests/test_01_basic.py:63–72  ·  view source on GitHub ↗

Create local 'OLItest 1', sync

(self)

Source from the content-addressed store, hash-verified

61 boxes, mails))
62
63 def test_02_createdir(self):
64 """Create local 'OLItest 1', sync"""
65 OLITestLib.delete_maildir('') #Delete all local maildir folders
66 OLITestLib.create_maildir('INBOX.OLItest 1')
67 code, res = OLITestLib.run_OLI()
68 self.assertEqual(res, "")
69 boxes, mails = OLITestLib.count_maildir_mails('')
70 self.assertTrue((boxes, mails)==(1,0), msg="Expected 1 folders and 0 "
71 "mails, but sync led to {0} folders and {1} mails".format(
72 boxes, mails))
73
74 def test_03_createdir_quote(self):
75 """Create local 'OLItest "1"' maildir, sync

Callers

nothing calls this directly

Calls 5

delete_maildirMethod · 0.80
create_maildirMethod · 0.80
run_OLIMethod · 0.80
count_maildir_mailsMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected