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