python/samba/blackbox: PY3 port for samba.tests.blackbox.traffic_learner
authorNoel Power <noel.power@suse.com>
Mon, 19 Nov 2018 10:50:29 +0000 (10:50 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:23 +0000 (10:38 +0100)
commit9db3ad9ea1c45d9e47ca819672c9dd1a291a3cda
tree88b204ddebec479125d0256b9edaaeb69e51e040
parentb920d80ecaeee98c5e562a2c0b384fe8ace635d4
python/samba/blackbox: PY3 port for samba.tests.blackbox.traffic_learner

The order of the values in the TrafficModel is different,
but... also unfortunately output of json.dump is also
different (even when using sorted versions of the associated
dictionaries before dumping), these changes reimport the output
files into TrafficModel objects rather than comparing the actual
raw files.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/blackbox/traffic_learner.py