thiell/test — Issue #114: Test if 2 nodesets are equivalent
Author: thiell
Created: 2012-03-03 16:33:46+00:00
State: open
Labels: Lib/NodeSet

NodeSet should be able to be compared.

{{{
ns1 = NodeSet("foo[1-3]")
ns2 = NodeSet("foo[1-4]")
ns2.difference_update("foo4")

if ns1 == ns2:
print "yes"
}}}

Simply implements {{{NodeSet.__eq__}}} ?