Ejemplo n.º 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')
Ejemplo n.º 2
0
 def test_save_listener__2(self):
     self._test_save(
         on=lambda: hkshell.on('save'),
         off=lambda: hkshell.off('save'))
Ejemplo n.º 3
0
 def off_fun():
     self.assertEqual(hkshell.features()['gen_indices'], 'on')
     hkshell.off('gen_indices')
     self.assertEqual(hkshell.features()['gen_indices'], 'off')