diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-16 21:32:27 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-16 21:32:27 -0400 |
| commit | f2d5c1d8c08b437b84e8bed166f313b2b5dba990 (patch) | |
| tree | 492e3d6855e0a3c158af0d3f8211435becb640eb | |
| parent | 3864eb227947365339bb83bfdd9925224aef7449 (diff) | |
| download | pyramid-f2d5c1d8c08b437b84e8bed166f313b2b5dba990.tar.gz pyramid-f2d5c1d8c08b437b84e8bed166f313b2b5dba990.tar.bz2 pyramid-f2d5c1d8c08b437b84e8bed166f313b2b5dba990.zip | |
not reusing this
| -rw-r--r-- | pyramid/tests/test_paster.py | 14 |
1 files 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): |
