Пример #1
0
def test_check_storage_file_is_csv_fails():
    with pytest.raises(MissingCsvEndingError):
        A1.check_storage_file_is_csv("A")
Пример #2
0
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."