From 6c0d2a7ce041cd4416bd1e6f149729b813f9f800 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 21 Oct 2015 01:36:01 -0500 Subject: exercise optionxform --- pyramid/tests/test_scripts/test_pshell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyramid/tests/test_scripts/test_pshell.py b/pyramid/tests/test_scripts/test_pshell.py index 19dd88693..f98ded6d3 100644 --- a/pyramid/tests/test_scripts/test_pshell.py +++ b/pyramid/tests/test_scripts/test_pshell.py @@ -196,7 +196,8 @@ class TestPShellCommand(unittest.TestCase): def test_command_loads_custom_items(self): command = self._makeOne() model = dummy.Dummy() - self.config_factory.items = [('m', model)] + user = dummy.Dummy() + self.config_factory.items = [('m', model), ('User', user)] shell = dummy.DummyShell() command.run(shell) self.assertTrue(self.config_factory.parser) @@ -209,6 +210,7 @@ class TestPShellCommand(unittest.TestCase): 'request':self.bootstrap.request, 'root_factory':self.bootstrap.root_factory, 'm':model, + 'User': user, }) self.assertTrue(self.bootstrap.closer.called) self.assertTrue(shell.help) -- cgit v1.2.3