(self)
| 5203 | @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(), |
| 5204 | 'trace function introduces __local__') |
| 5205 | def test_iter_items(self): |
| 5206 | # Testing dict-proxy iteritems... |
| 5207 | it = self.C.__dict__.items() |
| 5208 | self.assertNotIsInstance(it, list) |
| 5209 | keys = [item[0] for item in it] |
| 5210 | keys.sort() |
| 5211 | self.assertEqual(keys, ['__dict__', '__doc__', '__firstlineno__', |
| 5212 | '__module__', |
| 5213 | '__static_attributes__', '__weakref__', |
| 5214 | 'meth']) |
| 5215 | |
| 5216 | def test_dict_type_with_metaclass(self): |
| 5217 | # Testing type of __dict__ when metaclass set... |
nothing calls this directly
no test coverage detected