예제 #1
0
 def test_missing(self, monkeypatch):
     monkeypatch.delattr(keyutils.Qt, 'Key_AltGr')
     # We don't want to test the key which is actually missing - we only
     # want to know if the mapping still behaves properly.
     assert keyutils._key_to_string(Qt.Key_A) == 'A'
예제 #2
0
 def test_missing(self, monkeypatch):
     monkeypatch.delattr(keyutils.Qt, 'Key_AltGr')
     # We don't want to test the key which is actually missing - we only
     # want to know if the mapping still behaves properly.
     assert keyutils._key_to_string(Qt.Key_A) == 'A'
예제 #3
0
 def test_to_string(self, qt_key):
     assert keyutils._key_to_string(qt_key.member) == qt_key.name
예제 #4
0
 def test_to_string(self, qt_key):
     assert keyutils._key_to_string(qt_key.member) == qt_key.name