Test correct indentation in groups
()
| 83 | |
| 84 | |
| 85 | def test_indentation(): |
| 86 | """Test correct indentation in groups""" |
| 87 | count = 40 |
| 88 | gotoutput = pretty.pretty(MyList(range(count))) |
| 89 | expectedoutput = "MyList(\n" + ",\n".join(" %d" % i for i in range(count)) + ")" |
| 90 | |
| 91 | assert gotoutput == expectedoutput |
| 92 | |
| 93 | |
| 94 | def test_dispatch(): |