Beispiel #1
0
 def test_backtab(self):
     """Test if backtab is normalized to tab correctly."""
     assert utils.key_to_string(Qt.Key_Backtab) == 'Tab'
Beispiel #2
0
 def test_unicode(self):
     """Test a printable unicode key."""
     self.assertEqual(utils.key_to_string(Qt.Key_degree), '°')
Beispiel #3
0
 def test_unicode_garbage_keys(self):
     """Test a special key where QKeyEvent::toString works incorrectly."""
     assert utils.key_to_string(Qt.Key_Blue) == 'Blue'
Beispiel #4
0
 def test_escape(self):
     """Test if escape is normalized to escape correctly."""
     self.assertEqual(utils.key_to_string(Qt.Key_Escape), 'Escape')
Beispiel #5
0
 def test_letter(self):
     """Test a simple letter key."""
     self.assertEqual(utils.key_to_string(Qt.Key_A), 'A')
Beispiel #6
0
 def test_unicode(self):
     """Test a printable unicode key."""
     assert utils.key_to_string(Qt.Key_degree) == '°'
Beispiel #7
0
 def test_escape(self):
     """Test if escape is normalized to escape correctly."""
     assert utils.key_to_string(Qt.Key_Escape) == 'Escape'
Beispiel #8
0
 def test_letter(self):
     """Test a simple letter key."""
     self.assertEqual(utils.key_to_string(Qt.Key_A), 'A')
Beispiel #9
0
 def test_unicode(self):
     """Test a printable unicode key."""
     self.assertEqual(utils.key_to_string(Qt.Key_degree), '°')
Beispiel #10
0
 def test_backtab(self):
     """Test if backtab is normalized to tab correctly."""
     self.assertEqual(utils.key_to_string(Qt.Key_Backtab), 'Tab')
Beispiel #11
0
 def test_escape(self):
     """Test if escape is normalized to escape correctly."""
     self.assertEqual(utils.key_to_string(Qt.Key_Escape), 'Escape')
Beispiel #12
0
 def test_unicode_garbage_keys(self):
     """Test a special key where QKeyEvent::toString works incorrectly."""
     self.assertEqual(utils.key_to_string(Qt.Key_Blue), 'Blue')
Beispiel #13
0
 def test_unicode(self):
     """Test a printable unicode key."""
     assert utils.key_to_string(Qt.Key_degree) == '°'
Beispiel #14
0
 def test_letter(self):
     """Test a simple letter key."""
     assert utils.key_to_string(Qt.Key_A) == 'A'
Beispiel #15
0
 def test_escape(self):
     """Test if escape is normalized to escape correctly."""
     assert utils.key_to_string(Qt.Key_Escape) == 'Escape'
Beispiel #16
0
 def test_special(self):
     """Test a non-printable key handled by QKeyEvent::toString."""
     self.assertEqual(utils.key_to_string(Qt.Key_F1), 'F1')
Beispiel #17
0
 def test_letter(self):
     """Test a simple letter key."""
     assert utils.key_to_string(Qt.Key_A) == 'A'
Beispiel #18
0
 def test_backtab(self):
     """Test if backtab is normalized to tab correctly."""
     self.assertEqual(utils.key_to_string(Qt.Key_Backtab), 'Tab')
Beispiel #19
0
 def test_special(self):
     """Test a non-printable key handled by QKeyEvent::toString."""
     assert utils.key_to_string(Qt.Key_F1) == 'F1'
Beispiel #20
0
 def test_backtab(self):
     """Test if backtab is normalized to tab correctly."""
     assert utils.key_to_string(Qt.Key_Backtab) == 'Tab'