Пример #1
0
 def test_register_magic_arguments(self):
     pocket.WF = pocket.Workflow()
     self.assertTrue('deauth' not in pocket.WF.magic_arguments)
     pocket.register_magic_arguments()
     pocket.WF.magic_arguments['deauth']()
     self.assertTrue('deauth' in pocket.WF.magic_arguments)
     self.assertEquals(pocket.WF.magic_prefix, 'wf:')
Пример #2
0
 def test_register_magic_arguments(self):
     pocket.WF = pocket.Workflow()
     self.assertTrue('deauth' not in pocket.WF.magic_arguments)
     pocket.register_magic_arguments()
     pocket.WF.magic_arguments['deauth']()
     self.assertTrue('deauth' in pocket.WF.magic_arguments)
     self.assertEquals(pocket.WF.magic_prefix, 'wf:')