[Freeipa-devel] [PATCH] [WIP] ipatest/util: Use YAML-diff for reporting differences in assert_deepequal

Petr Viktorin pviktori at redhat.com
Tue Jun 24 12:03:32 UTC 2014


Hello,

With this patch applied and python-PyYAML installed, failed declarative 
tests will output a diff between the full expected/got structures, so 
you can see all the context and all the differences at once.
(I use YAML because it diffs very nicely, at least with the options used 
here.)

It's a hack/proof of concept, but I tried extra hard ensure it 
passes/fails in the same cases as the original assert_deepequal.

If you don't have python-PyYAML installed, the original assert_deepequal 
is used.

Feel free to use it if it helps.

-- 
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0608-WIP-ipatest-util-Use-YAML-diff-for-reporting-differe.patch
Type: text/x-patch
Size: 10084 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140624/bd5eb427/attachment.bin>


More information about the Freeipa-devel mailing list