Skip to content

Commit

Permalink
requestonly test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmclean committed Sep 24, 2011
1 parent 377aa5d commit da32aae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyramid/tests/test_config/test_views.py
Expand Up @@ -1763,6 +1763,13 @@ def test_instance_nocall(self):
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):
Expand Down

0 comments on commit da32aae

Please sign in to comment.