

def test_missing_node_data_json_error(self):
    'Should raise RepoError when there is a JSON error'
    nodes = chef._load_data('nodes')
    with patch.object(json, 'loads') as mock_method:
        mock_method.side_effect = json.decoder.JSONDecodeError('JSON syntax error', '', 10)
        self.assertRaises(chef.RepoError, chef._load_extended_node_data, self)

dataset/ETHPy150Open edelight/kitchen/kitchen/backends/tests.py TestRepo.test_missing_node_data_json_error/VarMisuse@64/118 `nodes`->`self`