def test_create_csv(self):
    with tempfile.TemporaryDirectory() as tmp_dir:
        xlsx_file = os.path.join(module_dir_, 'test_data/test.XLSX')
        expected_file = os.path.join(module_dir_, 'test_data/expected.csv')
        result_file = os.path.join(tmp_dir, 'test_cleaed.csv')
        loader = BelowPovertyLineDataLoader(xlsx_file)
        loader.download()
        loader.process()
        loader.save(csv_file_path=result_file)
        same = filecmp.cmp(result_file, expected_file)
        os.remove(result_file)
    self.assertTrue(same)
def test_create_csv(self):
    with tempfile.TemporaryDirectory() as tmp_dir:
        xlsx_file = os.path.join(module_dir_, 'test_data/test.XLSX')
        expected_file = os.path.join(module_dir_, 'test_data/expected.csv')
        result_file = os.path.join(tmp_dir, 'test_cleaed.csv')
        loader = BelowPovertyLineDataLoader(xlsx_file)
        loader.download()
        loader.process()
        loader.save(csv_file_path=result_file)
        same = filecmp.cmp(result_file, expected_file)
        os.remove(result_file)
    self.assertTrue(same)