| 94 | def test_name_lookup(self): |
| 95 | fmt = string.Formatter() |
| 96 | class AnyAttr: |
| 97 | def __getattr__(self, attr): |
| 98 | return attr |
| 99 | x = AnyAttr() |
| 100 | self.assertEqual(fmt.format("{0.lumber}{0.jack}", x), 'lumberjack') |
| 101 | with self.assertRaises(AttributeError): |
no outgoing calls
searching dependent graphs…