Lines Matching full:up
28 up = xdrlib.Unpacker(data)
30 self.assertEqual(up.get_position(), 0)
32 self.assertEqual(up.unpack_int(), 42)
33 self.assertEqual(up.unpack_int(), -17)
34 self.assertEqual(up.unpack_uint(), 9)
35 self.assertTrue(up.unpack_bool() is True)
38 pos = up.get_position()
39 self.assertTrue(up.unpack_bool() is False)
42 up.set_position(pos)
43 self.assertTrue(up.unpack_bool() is False)
45 self.assertEqual(up.unpack_uhyper(), 45L)
46 self.assertAlmostEqual(up.unpack_float(), 1.9)
47 self.assertAlmostEqual(up.unpack_double(), 1.9)
48 self.assertEqual(up.unpack_string(), s)
49 self.assertEqual(up.unpack_list(up.unpack_uint), range(5))
50 self.assertEqual(up.unpack_array(up.unpack_string), a)
51 up.done()
52 self.assertRaises(EOFError, up.unpack_uint)