def test_csv_existance(): assert ".csv" in filehandling.checkfiletype("Test.csv")
def test_checkfiletype_excel(): assert ".xls" in filehandling.checkfiletype("Test.xls")
def test_checkfiletype_notsupport(): with pytest.raises(SystemExit) as pytest_wrapped_e: filehandling.checkfiletype("Test.txt") assert pytest_wrapped_e.type == SystemExit
def test_checkfiletype_csv(): assert ".csv" in filehandling.checkfiletype("Test.csv")