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