Commits

Anonymous committed 80025e4

added test for static enums

  • Participants
  • Parent commits 8d90146

Comments (0)

Files changed (1)

File tests/test_static_internals.py

 import scio
 import scio.client
 import scio.gen
+from scio.static import safe_id
 import helpers
 
 
     zf = M['zf'].Client()
     print zf.type.ApiAccessMask._values
     assert zf.type.ApiAccessMask._values
+    for val in zf.type.ApiAccessMask._values:
+        assert getattr(zf.type.ApiAccessMask, safe_id(val)) == val
 
 
 def test_list_unmarshalling():