

@patch.object(Dataset, '__init__', side_effect=ErrorParsingBambooData())
def test_get_new_bamboo_dataset_parse_error(self, mock):
    self._publish_transportation_form()
    self._make_submissions()
    ret = get_new_bamboo_dataset(self.xform)
    self.assertEqual(ret, '')

dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/tests/utils/test_bamboo.py TestBamboo.test_get_new_bamboo_dataset_parse_error/original