Пример #1
0
 def _main_test_helper(self, argv, func_name=None, *exp_args, **exp_kwargs):
     self.useFixture(fixtures.MonkeyPatch('sys.argv', argv))
     manager.main()
     func_name.assert_called_once_with(*exp_args, **exp_kwargs)
 def _main_test_helper(self, argv, func_name=None, *exp_args, **exp_kwargs):
     self.useFixture(fixtures.MonkeyPatch('sys.argv', argv))
     manager.main()
     func_name.assert_called_once_with(*exp_args, **exp_kwargs)