Explorar o código

tests: Add unit test for static property

rdb hai 1 ano
pai
achega
14f3cb0e40
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      tests/interrogate/test_property.py

+ 6 - 0
tests/interrogate/test_property.py

@@ -609,3 +609,9 @@ def test_map_property_items():
 
 
     assert isinstance(prop.items(), collections_abc.MappingView)
     assert isinstance(prop.items(), collections_abc.MappingView)
     assert frozenset(prop.items()) == frozenset((('key', 'value'), ('key2', 'value2')))
     assert frozenset(prop.items()) == frozenset((('key', 'value'), ('key2', 'value2')))
+
+
+def test_static_property():
+    v1 = core.PandaSystem.version_string
+    v2 = core.PandaSystem.get_version_string()
+    assert v1 == v2