

def setUp(self):
    super(CSVImportTestCase, self).setUp()
    self.fixtures_dir = os.path.join(settings.ONADATA_DIR, 'libs', 'tests', 'fixtures')
    self.good_csv = open(os.path.join(self.fixtures_dir, 'good.csv'))
    self.bad_csv = open(os.path.join(self.fixtures_dir, 'bad.csv'))
    xls_file_path = os.path.join(self.fixtures_dir, 'tutorial.xls')
    self._publish_xls_file(xls_file_path)
    self.xform = XForm.objects.get()

dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/tests/utils/test_csv_import.py CSVImportTestCase.setUp/original