source:
src/media_conv/tests.py
@
4698
Last change on this file since 4698 was 4698, checked in by , 10 years ago | |
---|---|
File size: 453 bytes |
Line | |
---|---|
1 | # -*- coding: utf-8 -*- |
2 | import unittest |
3 | |
4 | from pyramid import testing |
5 | |
6 | |
7 | class ViewTests(unittest.TestCase): |
8 | def setUp(self): |
9 | self.config = testing.setUp() |
10 | |
11 | def tearDown(self): |
12 | testing.tearDown() |
13 | |
14 | def test_my_view(self): |
15 | from .views import media_conv_view |
16 | |
17 | request = testing.DummyRequest() |
18 | info = media_conv_view(request) |
19 | self.assertEqual(info['project'], |
20 | 'media_conv') |
Note: See TracBrowser
for help on using the repository browser.