예제 #1
0
 def test_remove(self, test):
     state = StateSet(*os)
     state.remove(pyatspi.STATE_PRESSED)
     if state.contains(pyatspi.STATE_PRESSED):
         test.fail("State not removed")
예제 #2
0
 def test_add(self, test):
     state = StateSet()
     state.add(pyatspi.STATE_PRESSED)
     if not state.contains(pyatspi.STATE_PRESSED):
         test.fail("State not added")
예제 #3
0
 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")
예제 #4
0
파일: statetest.py 프로젝트: GNOME/pyatspi2
	def test_remove(self, test):
		state = StateSet(*os)
		state.remove(pyatspi.STATE_PRESSED)
		if state.contains(pyatspi.STATE_PRESSED):
			test.fail("State not removed")
예제 #5
0
파일: statetest.py 프로젝트: GNOME/pyatspi2
	def test_add(self, test):
		state = StateSet()
		state.add(pyatspi.STATE_PRESSED)
		if not state.contains(pyatspi.STATE_PRESSED):
			test.fail("State not added")
예제 #6
0
파일: statetest.py 프로젝트: GNOME/pyatspi2
	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")