def test_cli_g02(self): """ cli_g02 """ cli = { "ssh": True, "telnet": False } self.maxDiff = None e = ml_w_cli.set(None, cli) self.assertTrue(e[0], e[1]) f = open(os.path.join("running", "cli.txt"), "r") e = f.readlines() f.close() if "json" == ml_system.CFG_TYPE: self.assertEqual(e, ['{"ssh": true, "telnet": false}']) if "jcfg" == ml_system.CFG_TYPE: self.assertEqual(e, [])
def run(self): e = ml_w_cli.set(None, cli, threading.RLock())