def assert_token_equal(x, y):
 if (not tokens_equal(x, y)):
  msg = u'The tokens differ: {0!r} != {1!r}'.format(x, y)
  pytest.fail(msg)
 return True

def assert_token_equal ( x , y ) : if ( not tokens_equal ( x , y ) ) : msg = u'The tokens differ: {0!r} != {1!r}' . format ( x , y ) pytest . fail ( msg ) return True
asserts that two tokens are equal .