Statistics
| Branch: | Tag: | Revision:

root / ui.pyramid / src / synnefo / tests.py @ d12e4bad

History | View | Annotate | Download (465 Bytes)

1
import unittest
2

    
3
from pyramid.configuration import Configurator
4
from pyramid import testing
5

    
6
class ViewTests(unittest.TestCase):
7
    def setUp(self):
8
        self.config = Configurator()
9
        self.config.begin()
10

    
11
    def tearDown(self):
12
        self.config.end()
13

    
14
    def test_my_view(self):
15
        from synnefo.views import my_view
16
        request = testing.DummyRequest()
17
        info = my_view(request)
18
        self.assertEqual(info['project'], 'synnefo')
19

    
20