def test_my_view(self): from pyramidapp.views import my_view request = testing.DummyRequest() info = my_view(request) self.assertEqual(info['project'], 'pyramidapp')
def test_it(self): from pyramidapp.views import my_view request = testing.DummyRequest() info = my_view(request) self.assertEqual(info['one'].name, 'one') self.assertEqual(info['project'], 'pyramid_blogr')