summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2015-10-21 01:36:01 -0500
committerMichael Merickel <michael@merickel.org>2015-10-21 01:36:01 -0500
commit6c0d2a7ce041cd4416bd1e6f149729b813f9f800 (patch)
tree59158522709394ee2e47ac2ad68626545ff89293
parentb7350ee78ad4101ea4112741ab26ce583b620ea7 (diff)
downloadpyramid-6c0d2a7ce041cd4416bd1e6f149729b813f9f800.tar.gz
pyramid-6c0d2a7ce041cd4416bd1e6f149729b813f9f800.tar.bz2
pyramid-6c0d2a7ce041cd4416bd1e6f149729b813f9f800.zip
exercise optionxform
-rw-r--r--pyramid/tests/test_scripts/test_pshell.py4
1 files changed, 3 insertions, 1 deletions
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)