def test_remove(self, test): state = StateSet(*os) state.remove(pyatspi.STATE_PRESSED) if state.contains(pyatspi.STATE_PRESSED): test.fail("State not removed")
def test_add(self, test): state = StateSet() state.add(pyatspi.STATE_PRESSED) if not state.contains(pyatspi.STATE_PRESSED): test.fail("State not added")
def test_contains(self, test): state = StateSet(*os) if not state.contains(pyatspi.STATE_PRESSED): test.fail("Does not find contained state") if state.contains(pyatspi.STATE_ACTIVE): test.fail("Finds state not contained")