Test correct indentation in groups
()
| 75 | |
| 76 | |
| 77 | def test_indentation(): |
| 78 | """Test correct indentation in groups""" |
| 79 | count = 40 |
| 80 | gotoutput = pretty.pretty(MyList(range(count))) |
| 81 | expectedoutput = "MyList(\n" + ",\n".join(" %d" % i for i in range(count)) + ")" |
| 82 | |
| 83 | nt.assert_equal(gotoutput, expectedoutput) |
| 84 | |
| 85 | |
| 86 | def test_dispatch(): |