Lines Matching refs:__dict__
25 self.assertTrue(foo.__dict__ is None)
58 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None,
67 self.assertEqual(foo.__dict__,
77 self.assertEqual(foo.__dict__,
86 d = foo.__dict__
91 self.assertEqual(foo.__dict__,
94 self.assertTrue(foo.__dict__ is d)
103 self.assertEqual(f().__dict__["bar"], 4)
115 exec(s, m.__dict__)
296 self.assertFalse("__annotations__" in foo.__dict__)
298 self.assertTrue("__annotations__" in foo.__dict__)
300 self.assertEqual(foo.__dict__['__annotations__'], d)
304 del foo.__dict__['__annotations__']
309 self.assertFalse("__annotations__" in foo.__dict__)
312 self.assertTrue("__annotations__" in foo.__dict__)
314 self.assertEqual(foo.__dict__['__annotations__'], d)
318 del foo.__dict__['__annotations__']
339 self.assertTrue("__annotations__" in ann_module4.__dict__)
341 self.assertFalse("__annotations__" in ann_module4.__dict__)