def test_sim_randing(self): sd = SimDriver() value = sd.read_value('randint', '50, 55') self.assertTrue(value >=50) self.assertTrue(value <= 55) value = sd.write_value('randint', '50, 55', 10) self.assertTrue(value >=50) self.assertTrue(value <= 55)
def test_sim_randing(self): sd = SimDriver() value = sd.read_value('randint', '50, 55') self.assertTrue(value >= 50) self.assertTrue(value <= 55) value = sd.write_value('randint', '50, 55', 10) self.assertTrue(value >= 50) self.assertTrue(value <= 55)
def test_sim_driver(self): sd = SimDriver() value = sd.read_value('localhost', 'MW10') self.assertEqual("265", value) sd.write_value('localhost', 'MW10', "APA") value = sd.read_value('localhost', 'MW10') self.assertEqual("APA", value)