(self)
| 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 | |
| 35 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected