def setChannelFunction(self, channel, function):
    SensorsClientTest.client.GpioCommand('function', channel, function)
    bus = {item['channel']: item['value'] for item in SensorsClientTest.client.BusInfo()}
    self.assertEqual(function, bus['sys:gpio:{};function'.format(channel)])
def setChannelFunction(self, channel, function):
    SensorsClientTest.client.GpioCommand('function', channel, function)
    bus = {item['channel']: item['value'] for item in SensorsClientTest.client.BusInfo()}
    self.assertEqual(function, bus['sys:gpio:{};function'.format(channel)])