def test_backtab(self): """Test if backtab is normalized to tab correctly.""" assert utils.key_to_string(Qt.Key_Backtab) == 'Tab'
def test_unicode(self): """Test a printable unicode key.""" self.assertEqual(utils.key_to_string(Qt.Key_degree), '°')
def test_unicode_garbage_keys(self): """Test a special key where QKeyEvent::toString works incorrectly.""" assert utils.key_to_string(Qt.Key_Blue) == 'Blue'
def test_escape(self): """Test if escape is normalized to escape correctly.""" self.assertEqual(utils.key_to_string(Qt.Key_Escape), 'Escape')
def test_letter(self): """Test a simple letter key.""" self.assertEqual(utils.key_to_string(Qt.Key_A), 'A')
def test_unicode(self): """Test a printable unicode key.""" assert utils.key_to_string(Qt.Key_degree) == '°'
def test_escape(self): """Test if escape is normalized to escape correctly.""" assert utils.key_to_string(Qt.Key_Escape) == 'Escape'
def test_backtab(self): """Test if backtab is normalized to tab correctly.""" self.assertEqual(utils.key_to_string(Qt.Key_Backtab), 'Tab')
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')
def test_letter(self): """Test a simple letter key.""" assert utils.key_to_string(Qt.Key_A) == 'A'
def test_special(self): """Test a non-printable key handled by QKeyEvent::toString.""" self.assertEqual(utils.key_to_string(Qt.Key_F1), 'F1')
def test_special(self): """Test a non-printable key handled by QKeyEvent::toString.""" assert utils.key_to_string(Qt.Key_F1) == 'F1'