diff options
| author | cguardia <carlos.delaguardia@gmail.com> | 2011-05-04 15:50:19 -0500 |
|---|---|---|
| committer | cguardia <carlos.delaguardia@gmail.com> | 2011-05-04 15:50:19 -0500 |
| commit | 127f51481cc47e9507bd4d87973a11e5dbab97c2 (patch) | |
| tree | 3dff3fb43d99a8740777c4f6686552a0a06d7525 | |
| parent | e87f1885d78df1c4f832912a2031291093517fa0 (diff) | |
| download | pyramid-127f51481cc47e9507bd4d87973a11e5dbab97c2.tar.gz pyramid-127f51481cc47e9507bd4d87973a11e5dbab97c2.tar.bz2 pyramid-127f51481cc47e9507bd4d87973a11e5dbab97c2.zip | |
changed __doc__ to __text__ in dummy custom predicate
| -rw-r--r-- | pyramid/tests/test_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/tests/test_config.py b/pyramid/tests/test_config.py index d8f8d89a0..9f7873ab5 100644 --- a/pyramid/tests/test_config.py +++ b/pyramid/tests/test_config.py @@ -4497,7 +4497,7 @@ class Test__make_predicates(unittest.TestCase): self.assertEqual(predicates[5].__text__, 'accept = accept') self.assertEqual(predicates[6].__text__, 'containment = containment') self.assertEqual(predicates[7].__text__, 'request_type = request_type') - self.assertEqual(predicates[8].__text__, '<unknown custom predicate>') + self.assertEqual(predicates[8].__text__, 'custom predicate') class TestMultiView(unittest.TestCase): def _getTargetClass(self): @@ -5073,7 +5073,7 @@ class DummyStaticURLInfo: class DummyCustomPredicate(object): def __init__(self): - self.__doc__ = 'custom predicate' + self.__text__ = 'custom predicate' def dummy_view(request): return 'OK' |
