From 5c2b4a8a5adae06b797758494a286829bc7ccc96 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 4 Nov 2002 21:57:53 +0000 Subject: test_pack_extra: Better way of testing packing with extra values. (This used to be commit 12c3bb99a5f870b01ef389ddad1073fc92d2362c) --- source3/python/examples/tdbpack/test_tdbpack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/python/examples/tdbpack/test_tdbpack.py b/source3/python/examples/tdbpack/test_tdbpack.py index a6aecd1833..c17f080973 100755 --- a/source3/python/examples/tdbpack/test_tdbpack.py +++ b/source3/python/examples/tdbpack/test_tdbpack.py @@ -124,14 +124,14 @@ class PackTests(unittest.TestCase): def test_pack_extra(self): """Leftover values when packing""" cases = [ - ('d', [10, 20]), + ('d', [10, 20], [10]), ] for unpacker in both_unpackers: for packer in both_packers: - for format, values in cases: + for format, values, chopped in cases: bin = packer(format, values) out, rest = unpacker(format, bin) - self.assertEquals(list(out), list(values)) + self.assertEquals(list(out), list(chopped)) self.assertEquals(rest, '') -- cgit