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