'Test if createfolders works as expected
Create a local Maildir, then sync with remote "createfolders"
disabled. Delete local Maildir and sync. We should have no new
local maildir then. TODO: Rewrite this test to directly test
and count the remote folders when the helper functions have
been written'

def test_06_createfolders(self):

    config = OLITestLib.get_default_config()
    config.set('Repository    IMAP', 'createfolders', 'False')
    OLITestLib.write_config_file(config)
    OLITestLib.delete_remote_testfolders()
    OLITestLib.delete_maildir('')
    OLITestLib.create_maildir('INBOX.OLItest')
    (code, res) = OLITestLib.run_OLI()
    self.assertEqual(res, '')
    OLITestLib.delete_maildir('INBOX.OLItest')
    (code, res) = OLITestLib.run_OLI()
    self.assertEqual(res, '')
    (boxes, mails) = OLITestLib.count_maildir_mails('')
    self.assertTrue(((boxes, mails) == (0, 0)), msg='Expected    0    folders    and    0    mails,    but    sync    led    to    {}    folders    and    {}    mails'.format(boxes, mails))
