def test_nodes_with_role(self):
        nodes = list(lib.get_nodes_with_role('all_you_can_eat'))
        self.assertEqual(len(nodes), 1)
        self.assertEqual(nodes[0]['name'], 'testnode2')
        self.assertTrue('role[all_you_can_eat]' in nodes[0]['run_list'])
Should return nodes when role is present in the explicit run_list
dataset/ETHPy150Open tobami/littlechef/tests/test_lib.py/TestLib.test_nodes_with_role