def test_fromBytes(self): makeInt = MakeInt() result = makeInt.call(u"fromBytes", [BytesObject("42")]) self.assertEqual(result.getInt(), 42)
def test_fromBytesRadix(self): makeInt = MakeInt() result = makeInt.call(u"fromBytes", [BytesObject("42"), IntObject(16)]) self.assertEqual(result.getInt(), 66)