(self)
| 102 | fmt.format("{0.lumber}{0.jack}", '') |
| 103 | |
| 104 | def test_index_lookup(self): |
| 105 | fmt = string.Formatter() |
| 106 | lookup = ["eggs", "and", "spam"] |
| 107 | self.assertEqual(fmt.format("{0[2]}{0[0]}", lookup), 'spameggs') |
| 108 | with self.assertRaises(IndexError): |
| 109 | fmt.format("{0[2]}{0[0]}", []) |
| 110 | with self.assertRaises(KeyError): |
| 111 | fmt.format("{0[2]}{0[0]}", {}) |
| 112 | |
| 113 | def test_auto_numbering_lookup(self): |
| 114 | fmt = string.Formatter() |
nothing calls this directly
no test coverage detected