diff options
-rwxr-xr-x | source3/python/examples/tdbpack/test_tdbpack.py | 6 |
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, '') |