def setSensorValue(self, sensor, value):
    SensorsClientTest.client.SensorCommand('integer', sensor['name'], None, value)
    channel = 'dev:{}'.format(sensor['name'])
    sensorInfo = next((obj for obj in SensorsClientTest.client.SensorsInfo() if (obj['channel'] == channel)))
    self.assertEqual(value, sensorInfo['value'])
def setSensorValue(self, sensor, value):
    SensorsClientTest.client.SensorCommand('integer', sensor['name'], None, value)
    channel = 'dev:{}'.format(sensor['name'])
    sensorInfo = next((obj for obj in SensorsClientTest.client.SensorsInfo() if (obj['channel'] == channel)))
    self.assertEqual(value, sensorInfo['value'])