diff options
| author | Nat McLean <nmclean64@gmail.com> | 2011-09-24 19:04:35 -0300 |
|---|---|---|
| committer | Nat McLean <nmclean64@gmail.com> | 2011-09-24 19:04:35 -0300 |
| commit | da32aae493430ff686d83a298d1e8d763381d029 (patch) | |
| tree | 86efc6fdaa993851eb1e03f8704beecdb5ce7b45 | |
| parent | 377aa5d9205d8b6b236d75e5502152b05211066e (diff) | |
| download | pyramid-da32aae493430ff686d83a298d1e8d763381d029.tar.gz pyramid-da32aae493430ff686d83a298d1e8d763381d029.tar.bz2 pyramid-da32aae493430ff686d83a298d1e8d763381d029.zip | |
requestonly test
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index be5143d45..f4e69f4e1 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -1763,6 +1763,13 @@ class Test_requestonly(unittest.TestCase): class Foo: pass foo = Foo() self.assertFalse(self._callFUT(foo)) + + def test_method_onearg_named_request(self): + class Foo: + def method(self, request): + """ """ + foo = Foo() + self.assertTrue(self._callFUT(foo.method)) class Test_isexception(unittest.TestCase): def _callFUT(self, ob): |
