diff options
Diffstat (limited to 'tests/test_message.py')
-rw-r--r-- | tests/test_message.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_message.py b/tests/test_message.py index 9e4f2a42..218ab529 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -95,4 +95,8 @@ class MessageTest (unittest.TestCase): self.assertEquals(msg.get_mpint(), 0x1122334455L) self.assertEquals(msg.get_so_far(), self.__d[:13]) self.assertEquals(msg.get_remainder(), self.__d[13:]) + msg.rewind() + self.assertEquals(msg.get_int(), 5) + self.assertEquals(msg.get_so_far(), self.__d[:4]) + self.assertEquals(msg.get_remainder(), self.__d[4:]) |