def balanced_eq(want, to_balance):
 expander = ForParser(to_balance)
 eq_(want, expander.to_unicode())

def balanced_eq ( want , to_balance ) : expander = ForParser ( to_balance ) eq_ ( want , expander . to_unicode ( ) )
run to_balance through the expander to get its tags balanced .