~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/tests.py

  • Committer: kapil.foss at gmail
  • Date: 2011-10-08 17:22:53 UTC
  • Revision ID: kapil.foss@gmail.com-20111008172253-utsq8socdsx047mw
charmworld pyramid starter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import unittest
 
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 charmworld.views import my_view
 
14
        request = testing.DummyRequest()
 
15
        info = my_view(request)
 
16
        self.assertEqual(info['project'], 'charmworld')