def off_fun(): self.assertEqual( hkshell.features()['touched_post_printer'], 'on') hkshell.off('touched_post_printer') self.assertEqual( hkshell.features()['touched_post_printer'], 'off')
def test_save_listener__2(self): self._test_save( on=lambda: hkshell.on('save'), off=lambda: hkshell.off('save'))
def off_fun(): self.assertEqual(hkshell.features()['gen_indices'], 'on') hkshell.off('gen_indices') self.assertEqual(hkshell.features()['gen_indices'], 'off')