def off_test_switch_off(self): self.assertTrue(cmds.pl_switch("A5", "off")) time.sleep(5)
def off_test_switch(self): self.assertRaises(ValueError, cmds.pl_switch("a1", "ooooo")) self.assertRaises(ValueError, cmds.pl_switch("af", "on")) self.assertRaises(ValueError, cmds.pl_switch("1f", "on")) self.assertRaises(ValueError, cmds.pl_switch("of", "on"))
def test_switch_off(self): self.assertTrue(cmds.pl_switch("A5", "off", "192.168.102.17")) time.sleep(5)