MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / testPlacementList

Method testPlacementList

src/Mod/Test/Document.py:311–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

309 self.assertListEqual(grp.Group, [])
310
311 def testPlacementList(self):
312 obj = self.Doc.addObject("App::FeaturePython", "Label")
313 obj.addProperty("App::PropertyPlacementList", "PlmList")
314 plm = FreeCAD.Placement()
315 plm.Base = (1, 2, 3)
316 plm.Rotation = (0, 0, 1, 0)
317 obj.PlmList = [plm]
318 cpy = self.Doc.copyObject(obj)
319 self.assertListEqual(obj.PlmList, cpy.PlmList)
320
321 def testRawAxis(self):
322 obj = self.Doc.addObject("App::FeaturePython", "Label")

Callers

nothing calls this directly

Calls 4

addObjectMethod · 0.45
addPropertyMethod · 0.45
PlacementMethod · 0.45
copyObjectMethod · 0.45

Tested by

no test coverage detected