commit | author | age | ||
360eba | 1 | import unittest |
CM | 2 | |
3 | from pyramid import testing | |
4 | ||
5 | class ViewTests(unittest.TestCase): | |
6 | def setUp(self): | |
7 | self.config = testing.setUp() | |
8 | ||
9 | def tearDown(self): | |
10 | testing.tearDown() | |
11 | ||
12 | def test_my_view(self): | |
13 | from {{package}}.views import my_view | |
14 | request = testing.DummyRequest() | |
15 | info = my_view(request) | |
16 | self.assertEqual(info['project'], '{{project}}') |