Lines Matching refs:Thing
1510 class Thing(object): class
1513 thing = Thing()
1514 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1515 self.assertEqual(inspect.getattr_static(thing, 'x', None), Thing.x)
1522 class Thing(object): class
1524 class OtherThing(Thing):
1528 self.assertEqual(inspect.getattr_static(something, 'x'), Thing.x)
1531 class Thing(object): class
1535 thing = Thing(3)
1541 class Thing(object): class
1545 thing = Thing()
1546 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1553 class Thing(object): class
1555 thing = Thing()
1559 class Thing(object): class
1562 self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.x)
1565 class Thing(object): class
1571 self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.__dict__['x'])
1574 class Thing(object): class
1576 class OtherThing(Thing):
1579 self.assertEqual(inspect.getattr_static(OtherThing, 'x'), Thing.x)
1582 class Thing(object): class
1587 thing = Thing()
1588 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1592 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1597 class Thing(object, metaclass=meta): class
1599 self.assertEqual(inspect.getattr_static(Thing, 'attr'), 'foo')
1623 class Thing(object): class
1628 class OtherThing(Thing):
1632 self.assertEqual(inspect.getattr_static(OtherThing(), 'x'), Thing.x)
1659 class Thing(object, metaclass=meta): class
1661 self.assertEqual(inspect.getattr_static(Thing, 'd'), meta.__dict__['d'])
1733 class Thing(metaclass=Meta): class
1739 instance = Thing()
1741 self.assertFalse(Thing.executed)
1758 class Thing(metaclass=Meta): class
1762 inspect.getattr_static(Thing, "spam")
1763 self.assertFalse(Thing.executed)