Changeset 391 for python/trunk/Lib/test/test_xdrlib.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_xdrlib.py
r2 r391 13 13 14 14 p.pack_int(42) 15 p.pack_int(-17) 15 16 p.pack_uint(9) 16 17 p.pack_bool(True) … … 30 31 31 32 self.assertEqual(up.unpack_int(), 42) 33 self.assertEqual(up.unpack_int(), -17) 32 34 self.assertEqual(up.unpack_uint(), 9) 33 self.assert _(up.unpack_bool() is True)35 self.assertTrue(up.unpack_bool() is True) 34 36 35 37 # remember position 36 38 pos = up.get_position() 37 self.assert _(up.unpack_bool() is False)39 self.assertTrue(up.unpack_bool() is False) 38 40 39 41 # rewind and unpack again 40 42 up.set_position(pos) 41 self.assert _(up.unpack_bool() is False)43 self.assertTrue(up.unpack_bool() is False) 42 44 43 45 self.assertEqual(up.unpack_uhyper(), 45L)
Note:
See TracChangeset
for help on using the changeset viewer.