def test_check_storage_file_is_csv_fails(): with pytest.raises(MissingCsvEndingError): A1.check_storage_file_is_csv("A")
def test_check_storage_file_is_csv_passes(): string = A1.check_storage_file_is_csv("A.csv") assert ( string == "A" ), f"The storage file name had an extension '.csv', but this was not recognized."