summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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, '')