File was renamed from pyramid/tests/test_viewderivers.py |
| | |
| | | self.assertEqual( |
| | | e.args[0], |
| | | 'Could not convert return value of the view callable function ' |
| | | 'pyramid.tests.test_viewderivers.view into a response ' |
| | | 'tests.test_viewderivers.view into a response ' |
| | | 'object. The value returned was None. You may have forgotten ' |
| | | 'to return a value from the view callable.' |
| | | ) |
| | |
| | | self.assertEqual( |
| | | e.args[0], |
| | | "Could not convert return value of the view callable function " |
| | | "pyramid.tests.test_viewderivers.view into a response " |
| | | "tests.test_viewderivers.view into a response " |
| | | "object. The value returned was {'a': 1}. You may have " |
| | | "forgotten to define a renderer in the view configuration." |
| | | ) |
| | |
| | | msg = e.args[0] |
| | | self.assertTrue(msg.startswith( |
| | | 'Could not convert return value of the view callable object ' |
| | | '<pyramid.tests.test_viewderivers.')) |
| | | '<tests.test_viewderivers.')) |
| | | self.assertTrue(msg.endswith( |
| | | '> into a response object. The value returned was None. You ' |
| | | 'may have forgotten to return a value from the view callable.')) |
| | |
| | | e.args[0], |
| | | 'Could not convert return value of the view callable ' |
| | | 'method __call__ of ' |
| | | 'class pyramid.tests.test_viewderivers.AView into a ' |
| | | 'class tests.test_viewderivers.AView into a ' |
| | | 'response object. The value returned was None. You may have ' |
| | | 'forgotten to return a value from the view callable.' |
| | | ) |
| | |
| | | e.args[0], |
| | | 'Could not convert return value of the view callable ' |
| | | 'method theviewmethod of ' |
| | | 'class pyramid.tests.test_viewderivers.AView into a ' |
| | | 'class tests.test_viewderivers.AView into a ' |
| | | 'response object. The value returned was None. You may have ' |
| | | 'forgotten to return a value from the view callable.' |
| | | ) |