

def test_group_by_hosts_with_role(self):
    'Should group guests by hosts when giving a role filter'
    data = chef.group_nodes_by_host(chef.get_nodes_extended(), roles=['loadbalancer'])
    self.assertEqual(len(data), 1)
    data.assertEqual(data[0]['name'], 'testnode9')
    self.assertEqual(len(data[0]['virtualization']['guests']), 3)

dataset/ETHPy150Open edelight/kitchen/kitchen/backends/tests.py TestData.test_group_by_hosts_with_role/VarMisuse@43/81 `self`->`data`