예제 #1
0
파일: test_safe.py 프로젝트: washort/typhon
 def test_fromBytes(self):
     makeInt = MakeInt()
     result = makeInt.call(u"fromBytes", [BytesObject("42")])
     self.assertEqual(result.getInt(), 42)
예제 #2
0
파일: test_safe.py 프로젝트: washort/typhon
 def test_fromBytesRadix(self):
     makeInt = MakeInt()
     result = makeInt.call(u"fromBytes", [BytesObject("42"), IntObject(16)])
     self.assertEqual(result.getInt(), 66)