iotests: Add assert_json_filename_equal() method
authorMax Reitz <mreitz@redhat.com>
Tue, 25 Oct 2016 13:11:40 +0000 (15:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2016 17:05:23 +0000 (19:05 +0200)
commite07375f5523289d5fc279e0b7d3e93e51a28e2e3
tree197d56d0a267634f4af1c8b3a94bb62b5547bf9b
parentd35172b425a032d7c9cc2453556d73a54e4ecfa1
iotests: Add assert_json_filename_equal() method

Since the order of keys in JSON filenames is not necessarily fixed, they
should not be compared to fixed strings. This method takes a Python dict
as a reference, parses a given JSON filename and compares both.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py