def __eq__(self, other): from system.helpers import equals, w_true return equals(self, other) is w_true
def int_add(self, other): assert equals(core.type(other), _tp_integer) return W_Integer(self.int() + other.int())
def assertEqual(self, first, other): from system.helpers import equals from bool import w_true self.assertTrue(equals(first, other) is w_true)