def testBusInfo(self):
    debug('testBusInfo')
    bus = {item['channel']: item['value'] for item in SensorsClientTest.client.BusInfo()}
    info('Bus info: {}'.format(bus))
    for pin in GPIO().pins:
        self.assertIn('sys:gpio:{};function'.format(pin), bus)
        self.assertIn('sys:gpio:{};value'.format(pin), bus)
def testBusInfo(self):
    debug('testBusInfo')
    bus = {item['channel']: item['value'] for item in SensorsClientTest.client.BusInfo()}
    info('Bus info: {}'.format(bus))
    for pin in GPIO().pins:
        self.assertIn('sys:gpio:{};function'.format(pin), bus)
        self.assertIn('sys:gpio:{};value'.format(pin), bus)