blob: c98e3c1fa0480087bb941e48725b238636fd6353 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import unittest
from repoze.bfg import testing
class ViewTests(unittest.TestCase):
def test_my_view(self):
from myproject.views import my_view
context = testing.DummyModel()
request = testing.DummyRequest()
self.assertEqual(my_view(context, request), {'project':'MyProject'})
|