diff options
author | Martin Pool <mbp@samba.org> | 2002-11-04 21:57:53 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-11-04 21:57:53 +0000 |
commit | 5c2b4a8a5adae06b797758494a286829bc7ccc96 (patch) | |
tree | 152c12792f5100bb43b556dd974dc67a22af82ae /source3/python/examples/tdbpack | |
parent | fe61a53991f6d4a73207c0d2132c86e6a14ae9b9 (diff) | |
download | samba-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)
Diffstat (limited to 'source3/python/examples/tdbpack')
-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, '') |