summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-11-04 21:57:53 +0000
committerMartin Pool <mbp@samba.org>2002-11-04 21:57:53 +0000
commit5c2b4a8a5adae06b797758494a286829bc7ccc96 (patch)
tree152c12792f5100bb43b556dd974dc67a22af82ae
parentfe61a53991f6d4a73207c0d2132c86e6a14ae9b9 (diff)
downloadsamba-5c2b4a8a5adae06b797758494a286829bc7ccc96.tar.gz
samba-5c2b4a8a5adae06b797758494a286829bc7ccc96.tar.bz2
samba-5c2b4a8a5adae06b797758494a286829bc7ccc96.zip
test_pack_extra: Better way of testing packing with extra values.
(This used to be commit 12c3bb99a5f870b01ef389ddad1073fc92d2362c)
-rwxr-xr-xsource3/python/examples/tdbpack/test_tdbpack.py6
1 files changed, 3 insertions, 3 deletions
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, '')