(self)
| 42 | self.fs = WeakSet([self.obj]) |
| 43 | |
| 44 | def test_methods(self): |
| 45 | weaksetmethods = dir(WeakSet) |
| 46 | for method in dir(set): |
| 47 | if method.startswith('_'): |
| 48 | continue |
| 49 | self.assertIn(method, weaksetmethods, |
| 50 | "WeakSet missing method " + method) |
| 51 | |
| 52 | def test_new_or_init(self): |
| 53 | self.assertRaises(TypeError, WeakSet, [], 2) |
nothing calls this directly
no test coverage detected