コード例 #1
0
ファイル: tests.py プロジェクト: jpardobl/hautomation_x10
 def off_test_switch_off(self):
     self.assertTrue(cmds.pl_switch("A5", "off"))
     time.sleep(5)
コード例 #2
0
ファイル: tests.py プロジェクト: jpardobl/hautomation_x10
 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
ファイル: tests.py プロジェクト: ddyeakley/hautomation_x10
 def test_switch_off(self):
     self.assertTrue(cmds.pl_switch("A5", "off", "192.168.102.17"))
     time.sleep(5)