'Process measurements are handled correctly.'

def test_compute_change(self):

    labels = ['node1', 'node2']
    before = [{'foo': 3, 'bar': 5}, {'foo': 10, 'bar': 2}]
    after = [{'foo': 4, 'bar': 5}, {'foo': 12, 'bar': 5}]
    result = compute_change(labels, before, after)
    self.assertEqual(result, {'node1': {'foo': 1, 'bar': 0}, 'node2': {'foo': 2, 'bar': 3}})
