Esempio n. 1
0
 def testGetFamilyInfo(self):
     thermoFamily = onewireneo.getFamilyInfo('10')
     assert (thermoFamily.familyCode == '10')
     assert (FEATURES.Temperature in thermoFamily.features)
     assert (
         thermoFamily.description == 'High Precision Digital Thermometer')
Esempio n. 2
0
 def testGetFamilyInfo(self):
     thermoFamily = onewireneo.getFamilyInfo('10')
     assert(thermoFamily.familyCode == '10')
     assert(FEATURES.Temperature in  thermoFamily.features)
     assert(thermoFamily.description == 'High Precision Digital Thermometer')
Esempio n. 3
0
 def testGetFamilyInfoString(self):
     thermoFamily = onewireneo.getFamilyInfo('20')
     assert (
         str(thermoFamily) ==
         'Quad A/D Converter: Family Code: 20, Features: [Temperature, Voltage]'
     )
Esempio n. 4
0
 def testGetFamilyInfoString(self):
     thermoFamily = onewireneo.getFamilyInfo('20');
     assert(str(thermoFamily) == 'Quad A/D Converter: Family Code: 20, Features: [Temperature, Voltage]')