MCPcopy Create free account
hub / github.com/Kitware/VTK / testWeakref

Method testWeakref

Common/Core/Testing/Python/TestWeakref.py:19–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18class TestWeakref(Testing.vtkTest):
19 def testWeakref(self):
20 o = vtkObject()
21 ref = weakref.ref(o)
22 self.assertEqual(ref().GetClassName(), 'vtkObject')
23 del o
24 self.assertEqual(ref(), None)
25
26 def testProxy(self):
27 o = vtkObject()

Callers

nothing calls this directly

Calls 2

vtkObjectClass · 0.50
GetClassNameMethod · 0.45

Tested by

no test coverage detected