Browse Source

tests: Add unit test for static property

rdb 1 năm trước cách đây
mục cha
commit
14f3cb0e40
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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 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