def test_separators(self, dialog: DataFrameModelImportDialog,
                     example_file_path, sep):
     out_path = os.path.splitext(example_file_path)[0] + "_sep_test.csv"
     if os.path.exists(out_path):
         os.remove(out_path)
     df = pandatools.superReadFile(example_file_path)
     df.to_csv(out_path, sep=SEPARATORS[sep], index=False)
     try:
         assert out_path not in dialog.df_manager.file_paths
         idx = dialog.comboBoxSeparator.findText(sep)
         assert idx >= 0
         dialog.comboBoxSeparator.setCurrentIndex(idx)
         dialog.set_file_path(out_path)
         dialog.checkBoxParseDates.setChecked(False)
         dialog.checkBoxTrimSpaces.setChecked(False)
         dialog.checkBoxScrubLinebreaks.setChecked(False)
         dialog.checkBoxHasHeaders.setChecked(True)
         dialog.execute()
         assert out_path in dialog.df_manager.file_paths
     finally:
         os.remove(out_path)
 def test_general(self, dialog: DataFrameModelImportDialog,
                  example_file_path):
     assert example_file_path not in dialog.df_manager.file_paths
     dialog.execute()
     assert example_file_path in dialog.df_manager.file_paths