move handling of dynamic properties from FeaturePythonPyT to DocumentObjectPy

This commit is contained in:
wmayer
2016-11-09 16:09:21 +01:00
parent 07a2182674
commit 76279882da
6 changed files with 87 additions and 140 deletions

View File

@@ -150,7 +150,7 @@ class DocumentBasicCases(unittest.TestCase):
enumeration_choices = ["one", "two"]
obj = self.Doc.addObject("App::FeaturePython","Label_2")
obj.addProperty("App::PropertyEnumeration", "myEnumeration", "Enum", "mytest")
with self.assertRaises(FreeCAD.Base.FreeCADError):
with self.assertRaises(ValueError):
obj.myEnumeration = enumeration_choices[0]
def testMem(self):