Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(259113)

Delta Between Two Patch Sets: Lib/test/test_xdrlib.py

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 12 months ago
Right Patch Set: Created 5 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_with.py ('k') | Lib/test/test_xmlrpc.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 from test import support 1 from test import support
2 import unittest 2 import unittest
3 3
4 import xdrlib 4 import xdrlib
5 5
6 class XDRTest(unittest.TestCase): 6 class XDRTest(unittest.TestCase):
7 7
8 def test_xdr(self): 8 def test_xdr(self):
9 p = xdrlib.Packer() 9 p = xdrlib.Packer()
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 self.assertEqual(up.unpack_list(up.unpack_uint), list(range(5))) 49 self.assertEqual(up.unpack_list(up.unpack_uint), list(range(5)))
50 self.assertEqual(up.unpack_array(up.unpack_string), a) 50 self.assertEqual(up.unpack_array(up.unpack_string), a)
51 up.done() 51 up.done()
52 self.assertRaises(EOFError, up.unpack_uint) 52 self.assertRaises(EOFError, up.unpack_uint)
53 53
54 def test_main(): 54 def test_main():
55 support.run_unittest(XDRTest) 55 support.run_unittest(XDRTest)
56 56
57 if __name__ == "__main__": 57 if __name__ == "__main__":
58 test_main() 58 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+