diff options
author | Scott Maxwell <scott@codecobblers.com> | 2015-01-26 22:36:15 -0800 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2015-01-26 22:36:15 -0800 |
commit | 70924234bb70d15005e4ce18305fc610482acf1b (patch) | |
tree | 59491e5156b0357bb9353a408abd276070c4796b /tests/test_message.py | |
parent | e2aeeed2c5feeaab4e8eab1adc614b2be21ab320 (diff) |
Revert add_int and get_int to strictly 32-bits and add adaptive versions
Diffstat (limited to 'tests/test_message.py')
-rw-r--r-- | tests/test_message.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_message.py b/tests/test_message.py index f308c037..f18cae90 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -92,12 +92,12 @@ class MessageTest (unittest.TestCase): def test_4_misc(self): msg = Message(self.__d) - self.assertEqual(msg.get_int(), 5) - self.assertEqual(msg.get_int(), 0x1122334455) - self.assertEqual(msg.get_int(), 0xf00000000000000000) + self.assertEqual(msg.get_adaptive_int(), 5) + self.assertEqual(msg.get_adaptive_int(), 0x1122334455) + self.assertEqual(msg.get_adaptive_int(), 0xf00000000000000000) self.assertEqual(msg.get_so_far(), self.__d[:29]) self.assertEqual(msg.get_remainder(), self.__d[29:]) msg.rewind() - self.assertEqual(msg.get_int(), 5) + self.assertEqual(msg.get_adaptive_int(), 5) self.assertEqual(msg.get_so_far(), self.__d[:4]) self.assertEqual(msg.get_remainder(), self.__d[4:]) |