def testMonitor(self):
    debug('testMonitor')
    self.previousSystemData = None
    self.currentSystemData = None
    self.done = False
    SensorsClientTest.client.SetDataChanged(self.OnDataChanged)
    for i in range(35):
        sleep(1)
        if self.done:
            break
    info('Changed items: {}'.format([x for x in self.currentSystemData if (x not in self.previousSystemData)]))
    self.assertNotEqual(self.previousSystemData, self.currentSystemData)
def testMonitor(self):
    debug('testMonitor')
    self.previousSystemData = None
    self.currentSystemData = None
    self.done = False
    SensorsClientTest.client.SetDataChanged(self.OnDataChanged)
    for i in range(35):
        sleep(1)
        if self.done:
            break
    info('Changed items: {}'.format([x for x in self.currentSystemData if (x not in self.previousSystemData)]))
    self.assertNotEqual(self.previousSystemData, self.currentSystemData)