示例#1
0
 def off_test_switch_off(self):
     self.assertTrue(cmds.pl_switch("A5", "off"))
     time.sleep(5)
示例#2
0
 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"))
示例#3
0
 def test_switch_off(self):
     self.assertTrue(cmds.pl_switch("A5", "off", "192.168.102.17"))
     time.sleep(5)