summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_scripts/test_pshell.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pyramid/tests/test_scripts/test_pshell.py b/pyramid/tests/test_scripts/test_pshell.py
index f98ded6d3..45d21015b 100644
--- a/pyramid/tests/test_scripts/test_pshell.py
+++ b/pyramid/tests/test_scripts/test_pshell.py
@@ -71,7 +71,7 @@ class TestPShellCommand(unittest.TestCase):
self._makeEntryPoints(command, {})
command.default_runner = shell
- command.options.python_shell = 'unknown_python_shell'
+ command.args.python_shell = 'unknown_python_shell'
result = command.run()
self.assertEqual(result, 1)
self.assertEqual(
@@ -95,7 +95,7 @@ class TestPShellCommand(unittest.TestCase):
}
)
- command.options.python_shell = 'ipython'
+ command.args.python_shell = 'ipython'
command.run()
self.assertTrue(self.config_factory.parser)
@@ -140,7 +140,7 @@ class TestPShellCommand(unittest.TestCase):
shell = command.make_shell()
self.assertEqual(shell, dshell)
- command.options.python_shell = 'ipython'
+ command.args.python_shell = 'ipython'
self.assertRaises(ValueError, command.make_shell)
self._makeEntryPoints(
@@ -152,15 +152,15 @@ class TestPShellCommand(unittest.TestCase):
}
)
- command.options.python_shell = 'ipython'
+ command.args.python_shell = 'ipython'
shell = command.make_shell()
self.assertEqual(shell, ipshell)
- command.options.python_shell = 'bpython'
+ command.args.python_shell = 'bpython'
shell = command.make_shell()
self.assertEqual(shell, bpshell)
- command.options.python_shell = 'python'
+ command.args.python_shell = 'python'
shell = command.make_shell()
self.assertEqual(shell, dshell)
@@ -291,7 +291,7 @@ class TestPShellCommand(unittest.TestCase):
model = dummy.Dummy()
self.config_factory.items = [('setup', 'abc'),
('m', model)]
- command.options.setup = setup
+ command.args.setup = setup
shell = dummy.DummyShell()
command.run(shell)
self.assertTrue(self.config_factory.parser)
@@ -365,7 +365,7 @@ class TestPShellCommand(unittest.TestCase):
}
)
- command.options.list = True
+ command.args.list = True
result = command.run()
self.assertEqual(result, 0)
self.assertEqual(out_calls, [