

def test_submit_csv_edits(self):
    csv_import.submit_csv(self.user.username, self.xform, self.good_csv)
    self.assertEqual(Instance.objects.count(), 9, 'submit_csv edits #1 test Failed!')
    edit_csv = open(os.path.join(edit_csv.fixtures_dir, 'edit.csv'))
    edit_csv_str = edit_csv.read()
    edit_csv = StringIO(edit_csv_str.format(*[x.get('uuid') for x in Instance.objects.values('uuid')]))
    count = Instance.objects.count()
    csv_import.submit_csv(self.user.username, self.xform, edit_csv)
    self.assertEqual(Instance.objects.count(), count, 'submit_csv edits #2 test Failed!')

dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/tests/utils/test_csv_import.py CSVImportTestCase.test_submit_csv_edits/VarMisuse@56/82 `self`->`edit_csv`