Ian Bicking: the old part of his blog

DataTest 0.2

DataTest 0.2 is out.

Sorry, no good website really. There are still some quirks with the test finder (and name matcher) as well. But there are some new features. From the README:

doctest Extensions

In addition to running doctest tests, DataTest modifies doctest to add a few small changes to avoid false negatives when comparing output with the expected output.

These all make the doctest examples a little less accurate, but they make them easier to write without going into every detail.

Utilities

DataTest includes a couple of utilities to make debugging you code easier. These are contained in the datatest.util package.

datatest.util.dictdiff compares two dictionaries and if they don't match it displays a per-key comparison. You can provide various wildcards in one of the dictionaries (the "pattern", i.e., the expected output). See the doc strings for more.

datatest.util.htmldiff compares two HTML fragments. It ignores whitespace and the order of tags, in addition to allowing various wildcards. See the doc strings for more.

Created 12 Mar '04
Modified 14 Dec '04

Comments:

datatest.util.htmldiff compares two HTML fragments. It ignores whitespace and the order of tags.

Should that be "the order of attributes"?




# James Kew

Yes, attributes, you are correct.
# Ian Bicking