

def test_data_loader_json_error(self):
    'Should raise RepoError when LittleChef raises SystemExit'
    with patch('kitchen.backends.lchef.lib.get_nodes') as mock_method:
        mock_method.side_effect = SystemExit()
        self.assertRaises(chef.RepoError, chef._data_loader, 'nodes')

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