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

Method testProxy

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

Source from the content-addressed store, hash-verified

24 self.assertEqual(ref(), None)
25
26 def testProxy(self):
27 o = vtkObject()
28 proxy = weakref.proxy(o)
29 self.assertEqual(proxy.GetClassName(), 'vtkObject')
30 del o
31 self.assertRaises(ReferenceError, getattr,
32 proxy, 'GetClassName')
33
34
35if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

vtkObjectClass · 0.50
GetClassNameMethod · 0.45

Tested by

no test coverage detected