

def test_data_loader(self):
    "Should return nodes when the given argument is 'nodes'"
    data = chef._data_loader('nodes')
    self.assertEqual(len(data), TOTAL_NODES)
    self.assertTrue(data[1]['name'].startswith('testnode'))

dataset/ETHPy150Open edelight/kitchen/kitchen/backends/tests.py TestData.test_data_loader/original