|
10 | 10 | _check_fill_value, |
11 | 11 | _check_coordinates, |
12 | 12 | _check_required_dimensions, |
13 | | - ends_with_3_digits, |
| 13 | + _check_ends_with_3_digits, |
14 | 14 | validate_obc_file, |
15 | 15 | ) |
16 | 16 |
|
@@ -95,16 +95,16 @@ def test_check_required_dimensions_invalid_4d_for_surface(caplog): |
95 | 95 | assert "dimension" in caplog.text.lower() |
96 | 96 |
|
97 | 97 |
|
98 | | -# ends_with_3_digits tests |
99 | | -def test_ends_with_3_digits_valid_cases(): |
| 98 | +# _check_ends_with_3_digits tests |
| 99 | +def test_check_ends_with_3_digits_valid_cases(): |
100 | 100 | """String ending with 3 digits returns True""" |
101 | | - assert ends_with_3_digits("temp_001") is True |
102 | | - assert ends_with_3_digits("var_999") is True |
103 | | - assert ends_with_3_digits("_000") is True |
104 | | - assert ends_with_3_digits("temp_01") is False |
105 | | - assert ends_with_3_digits("temp_0001") is False |
106 | | - assert ends_with_3_digits("temp_abc") is False |
107 | | - assert ends_with_3_digits("temp") is False |
| 101 | + assert _check_ends_with_3_digits("temp_001") is True |
| 102 | + assert _check_ends_with_3_digits("var_999") is True |
| 103 | + assert _check_ends_with_3_digits("_000") is True |
| 104 | + assert _check_ends_with_3_digits("temp_01") is False |
| 105 | + assert _check_ends_with_3_digits("temp_0001") is False |
| 106 | + assert _check_ends_with_3_digits("temp_abc") is False |
| 107 | + assert _check_ends_with_3_digits("temp") is False |
108 | 108 |
|
109 | 109 |
|
110 | 110 | # validate_obc_file tests |
|
0 commit comments