From f2d5c1d8c08b437b84e8bed166f313b2b5dba990 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 16 Jul 2011 21:32:27 -0400 Subject: not reusing this --- pyramid/tests/test_paster.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pyramid/tests/test_paster.py b/pyramid/tests/test_paster.py index 91677fff5..085cda810 100644 --- a/pyramid/tests/test_paster.py +++ b/pyramid/tests/test_paster.py @@ -5,8 +5,9 @@ class TestPShellCommand(unittest.TestCase): from pyramid.paster import PShellCommand return PShellCommand - def _patch(self, cmd, patch_interact=True, patch_bootstrap=True, - patch_config=True, patch_args=True, patch_options=True): + def _makeOne(self, patch_interact=True, patch_bootstrap=True, + patch_config=True, patch_args=True, patch_options=True): + cmd = self._getTargetClass()('pshell') if patch_interact: self.interact = DummyInteractor() cmd.interact = (self.interact,) @@ -24,15 +25,6 @@ class TestPShellCommand(unittest.TestCase): self.options = Options() self.options.disable_ipython = True cmd.options = self.options - def _makeOne(self, patch_interact=True, patch_bootstrap=True, - patch_config=True, patch_args=True, patch_options=True): - cmd = self._getTargetClass()('pshell') - self._patch(cmd, patch_interact=patch_interact, - patch_bootstrap=patch_bootstrap, - patch_config=patch_config, - patch_args=patch_args, - patch_options=patch_options, - ) return cmd def test_command_ipshell_is_None_ipython_enabled(self): -- cgit v1.2.3