Пример #1
0
 def test_03_All(self):
     """ Did we get everything set up for the rest of the tests of this class.
     """
     l_in_xml = self.m_xml.light
     l_device = self.m_device_obj
     l_light = LightingCoreAPI.read_core_lighting_xml(l_device, l_in_xml, self.m_version)
     FamUtil.read_family_data(self.m_pyhouse_obj, l_light, l_in_xml)
     l_out_xml = LightingCoreAPI.write_core_lighting_xml("Light", l_light)
     FamUtil.write_family_data(self.m_pyhouse_obj, l_out_xml, l_light)
     self.assertEqual(l_light.Name, TESTING_LIGHTING_LIGHTS_NAME_1)
     self.assertEqual(l_light.DeviceFamily, TESTING_DEVICE_FAMILY_INSTEON)
     self.assertEqual(l_light.InsteonAddress, conversions.dotted_hex2int(TESTING_INSTEON_ADDRESS_0))
Пример #2
0
 def test_01_All(self):
     """ Did we get everything set up for the rest of the tests of this class.
     """
     l_in_xml = self.m_xml.light
     l_device = self.m_device_obj
     l_light = deviceXML.read_base_device_object_xml(self.m_pyhouse_obj, l_device, l_in_xml)
     FamUtil.read_family_data(self.m_pyhouse_obj, l_light, l_in_xml)
     l_out_xml = deviceXML.write_base_device_object_xml('Light', l_light)
     FamUtil.write_family_data(self.m_pyhouse_obj, l_out_xml, l_light)
     self.assertEqual(l_light.Name, TESTING_LIGHT_NAME_0)
     self.assertEqual(l_light.DeviceFamily, TESTING_DEVICE_FAMILY_INSTEON)
     self.assertEqual(l_light.InsteonAddress, conversions.dotted_hex2int(TESTING_INSTEON_ADDRESS_0))
Пример #3
0
 def test_02_All(self):
     """ Did we get everything set up for the rest of the tests of this class.
     """
     l_in_xml = self.m_xml.light
     l_device = self.m_device_obj
     l_light = LightingCoreAPI.read_core_lighting_xml(
         self.m_pyhouse_obj, l_device, l_in_xml)
     FamUtil.read_family_data(self.m_pyhouse_obj, l_light, l_in_xml)
     l_out_xml = LightingCoreAPI.write_core_lighting_xml('Light', l_light)
     FamUtil.write_family_data(self.m_pyhouse_obj, l_out_xml, l_light)
     self.assertEqual(l_light.Name, TESTING_LIGHT_NAME_0)
     self.assertEqual(l_light.DeviceFamily, TESTING_DEVICE_FAMILY_INSTEON)
     self.assertEqual(l_light.InsteonAddress,
                      conversions.dotted_hex2int(TESTING_INSTEON_ADDRESS_0))