• Home
  • Raw
  • Download

Lines Matching refs:getattr_static

1514         self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1515 self.assertEqual(inspect.getattr_static(thing, 'x', None), Thing.x)
1517 inspect.getattr_static(thing, 'y')
1519 self.assertEqual(inspect.getattr_static(thing, 'y', 3), 3)
1528 self.assertEqual(inspect.getattr_static(something, 'x'), Thing.x)
1536 self.assertEqual(inspect.getattr_static(thing, 'x'), 3)
1538 self.assertEqual(inspect.getattr_static(thing, 'x'), 2)
1546 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1556 self.assertEqual(inspect.getattr_static(thing, 'x'), desc)
1562 self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.x)
1571 self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.__dict__['x'])
1579 self.assertEqual(inspect.getattr_static(OtherThing, 'x'), Thing.x)
1588 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1589 self.assertEqual(inspect.getattr_static(thing, 'y'), 'bar')
1592 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1599 self.assertEqual(inspect.getattr_static(Thing, 'attr'), 'foo')
1605 self.assertEqual(inspect.getattr_static(OtherThing, 'attr'), 'foo')
1610 self.assertEqual(inspect.getattr_static(OtherOtherThing, 'x'), 3)
1613 self.assertEqual(inspect.getattr_static(1, 'foo', None), None)
1614 self.assertNotEqual(inspect.getattr_static('foo', 'lower'), None)
1619 self.assertEqual(inspect.getattr_static(handle, 'name'), type(handle).name)
1632 self.assertEqual(inspect.getattr_static(OtherThing(), 'x'), Thing.x)
1645 self.assertEqual(inspect.getattr_static(foo, 'd'), 1)
1650 self.assertEqual(inspect.getattr_static(foo, 'd'), Foo.__dict__['d'])
1661 self.assertEqual(inspect.getattr_static(Thing, 'd'), meta.__dict__['d'])
1676 self.assertEqual(inspect.getattr_static(instance, 'foo'), 3)
1678 self.assertEqual(inspect.getattr_static(Something, 'foo'), 3)
1692 self.assertEqual(inspect.getattr_static(Something(), 'foo'), 3)
1693 self.assertEqual(inspect.getattr_static(Something, 'foo'), 3)
1708 self.assertEqual(inspect.getattr_static(foo, 'a'), 3)
1724 self.assertEqual(inspect.getattr_static(foo, 'a'), 3)
1740 self.assertEqual(inspect.getattr_static(instance, "spam"), 42)
1745 self.assertIsNot(inspect.getattr_static(sys, "version", sentinel),
1762 inspect.getattr_static(Thing, "spam")