(self)
| 215 | self.assertEqual(last2, [' 999,', ' ...)']) |
| 216 | |
| 217 | def test_long_dict(self): |
| 218 | d = { n:n for n in range(10000) } |
| 219 | p = pretty.pretty(d) |
| 220 | last2 = p.rsplit('\n', 2)[-2:] |
| 221 | self.assertEqual(last2, [' 999: 999,', ' ...}']) |
| 222 | |
| 223 | def test_unbound_method(self): |
| 224 | output = pretty.pretty(MyObj.somemethod) |