示例#1
0
 def off_fun():
     self.assertEqual(
         hkshell.features()['touched_post_printer'],
         'on')
     hkshell.off('touched_post_printer')
     self.assertEqual(
         hkshell.features()['touched_post_printer'],
         'off')
示例#2
0
 def test_save_listener__2(self):
     self._test_save(
         on=lambda: hkshell.on('save'),
         off=lambda: hkshell.off('save'))
示例#3
0
 def off_fun():
     self.assertEqual(hkshell.features()['gen_indices'], 'on')
     hkshell.off('gen_indices')
     self.assertEqual(hkshell.features()['gen_indices'], 'off')