def test_compare(self, test): one = StateSet(*os) two = StateSet(*os) onemtwo = one.compare(two) if not onemtwo.isEmpty(): test.fail("Equal states when compared yeilds non-empty state") one.add(pyatspi.STATE_ACTIVE) onemtwo = one.compare(two) act = StateSet(pyatspi.STATE_ACTIVE) if not onemtwo.equals(act): test.fail("Compared states do not yeild correct state")