Skip to content

Commit

Permalink
+ unit test for PropertyEnumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 26, 2015
1 parent c84ce15 commit badfa3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Test/Document.py
Expand Up @@ -113,8 +113,10 @@ def testObjects(self):
self.failUnless(L1.ConstraintFloat - 0.0 < 0.001)

# test enum property
L1.Enum = "Four"
# in App::FeatureTest the current value is set to 4
self.failUnless(L1.Enum == "Four")
L1.Enum = "Three"
self.failUnless(L1.Enum == "Three", "Different value to 'Three'")
L1.Enum = 2
self.failUnless(L1.Enum == "Two", "Different value to 'Two'")
try:
Expand Down

0 comments on commit badfa3a

Please sign in to comment.