|
|
@@ -1070,20 +1070,25 @@ class TestSupportsDrying:
|
|
|
assert supports_drying("P1S", "01.08.00.00") is True
|
|
|
assert supports_drying("H2D", "01.02.30.00") is True
|
|
|
assert supports_drying("H2S", "01.02.00.00") is True
|
|
|
+ assert supports_drying("P2S", "01.02.00.00") is True
|
|
|
+ assert supports_drying("N7", "01.02.00.00") is True
|
|
|
|
|
|
def test_known_supported_old_firmware(self):
|
|
|
"""Verify known models with old firmware return False."""
|
|
|
assert supports_drying("X1C", "01.08.00.00") is False
|
|
|
assert supports_drying("P1S", "01.07.00.00") is False
|
|
|
assert supports_drying("H2S", "01.01.00.00") is False
|
|
|
+ assert supports_drying("P2S", "01.01.99.99") is False
|
|
|
+ assert supports_drying("N7", "01.01.99.99") is False
|
|
|
|
|
|
def test_known_supported_no_firmware(self):
|
|
|
"""Verify known models with no firmware return False."""
|
|
|
assert supports_drying("X1C", None) is False
|
|
|
+ assert supports_drying("P2S", None) is False
|
|
|
|
|
|
def test_unsupported_models(self):
|
|
|
"""Verify models without AMS drying support return False regardless of firmware."""
|
|
|
- for model in ["P2S", "A1", "A1MINI", "A1-MINI", "H2C", "N7", "N1", "N2S"]:
|
|
|
+ for model in ["A1", "A1MINI", "A1-MINI", "H2C", "N1", "N2S"]:
|
|
|
assert supports_drying(model, "99.99.99.99") is False, f"Expected False for {model}"
|
|
|
|
|
|
def test_unknown_models_allowed(self):
|
|
|
@@ -1107,7 +1112,8 @@ class TestSupportsDrying:
|
|
|
def test_case_insensitive(self):
|
|
|
"""Verify model matching is case-insensitive."""
|
|
|
assert supports_drying("x1c", "01.09.00.00") is True
|
|
|
- assert supports_drying("p2s", "99.99.99.99") is False
|
|
|
+ assert supports_drying("p2s", "01.02.00.00") is True
|
|
|
+ assert supports_drying("a1", "99.99.99.99") is False
|
|
|
|
|
|
|
|
|
class TestGetDerivedStatusName:
|