def expanded_eq(want, to_expand):
 expander = ForParser(to_expand)
 expander.expand_fors()
 eq_(want, expander.to_unicode())

def expanded_eq ( want , to_expand ) : expander = ForParser ( to_expand ) expander . expand_fors ( ) eq_ ( want , expander . to_unicode ( ) )
balance and expand the fors in to_expand .