'Create mismatching remote and local nametrans rules
This should raise an error.'

def test_04_nametransmismatch(self):

    config = OLITestLib.get_default_config()
    config.set('Repository    IMAP', 'nametrans', 'lambda    f:    f')
    config.set('Repository    Maildir', 'nametrans', 'lambda    f:    f    +    "moo"')
    OLITestLib.write_config_file(config)
    (code, res) = OLITestLib.run_OLI()
    mismatch = ('ERROR:    INFINITE    FOLDER    CREATION    DETECTED!' in res)
    self.assertEqual(mismatch, True, msg="Mismatching    nametrans    rules    did    NOT    trigger    an    'infinite    folder    generation'    error.    Output    was:\n{0}".format(res))
    OLITestLib.write_config_file()
