def test_strint_comparsions(): a = StrInt(-1) b = StrInt(-2) c = StrInt.to_simple(b) assert isinstance(c, basestring) assert a > b assert a > c