def test_indentation():
 count = 40
 gotoutput = pretty.pretty(MyList(range(count)))
 expectedoutput = (('MyList(\n' + ',\n'.join((('   %d' % i) for i in range(count)))) + ')')
 nt.assert_equal(gotoutput, expectedoutput)

def test_indentation ( ) : count = 40 gotoutput = pretty . pretty ( MyList ( range ( count ) ) ) expectedoutput = ( ( 'MyList(\n' + ',\n' . join ( ( ( '   %d' % i ) for i in range ( count ) ) ) ) + ')' ) nt . assert_equal ( gotoutput , expectedoutput )
test correct indentation in groups .