thiell/test — Issue #52: Test if 2 nodesets are equivalent
Author: thiell
Created: 2012-03-03 16:29:16+00:00
State: closed
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__}}} ?