py:dcerpc/raw_testcase: add assertPadding() that allows IGNORE_RANDOM_PAD=1
commit460a9d379ff7fb857535520f28cdcc4e49102c13
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Dec 2018 18:56:58 +0000 (11 19:56 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 23 Dec 2018 17:15:20 +0000 (23 18:15 +0100)
tree34c20cb61587698ab036c552148dd17551e522e2
parentfc4a8c17ef34aa3690510642277b7203c1973e7e
py:dcerpc/raw_testcase: add assertPadding() that allows IGNORE_RANDOM_PAD=1

Sometimes Windows returns non zero bytes in padding fields,
we won't allow that by default, but IGNORE_RANDOM_PAD=1 will
will only do the length check.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/dcerpc/raw_testcase.py