Пример #1
0
 def test_parse_hotkey_combinations_list_list(self):
     self.assertEqual(hotkey.parse_hotkey_combinations(hotkey.parse_hotkey_combinations('a, b')), hotkey.parse_hotkey_combinations('a, b'))
Пример #2
0
 def test_parse_hotkey_combinations_fail_empty(self):
     with self.assertRaises(ValueError):
         hotkey.parse_hotkey_combinations('')
Пример #3
0
 def test_parse_hotkey_combinations_multi_modifier(self):
     self.assertEqual(hotkey.parse_hotkey_combinations('shift+a, b'), (((1, 5), (1, 6)), ((2,),)))
Пример #4
0
 def test_parse_hotkey_combinations_multi(self):
     self.assertEqual(hotkey.parse_hotkey_combinations('a, b'), (((1,),), ((2,),)))
Пример #5
0
 def test_parse_hotkey_combinations_single_modifiers(self):
     self.assertEqual(hotkey.parse_hotkey_combinations('shift+ctrl+a'), (((1, 5, 7), (1, 6, 7)),))
Пример #6
0
 def test_parse_hotkey_combinations_single(self):
     self.assertEqual(hotkey.parse_hotkey_combinations('a'), (((1,),),))
Пример #7
0
 def test_parse_hotkey_combinations_scan_code(self):
     self.assertEqual(hotkey.parse_hotkey_combinations(30), (((30,),),))