2 from pyramid.config import Configurator
3 from pyramid import testing
6 from sqlalchemy import create_engine
7 from xonstat.models import initialize_sql
8 session = initialize_sql(create_engine('sqlite://'))
11 class TestMyView(unittest.TestCase):
13 self.config = testing.setUp()
20 from xonstat.views import my_view
21 request = testing.DummyRequest()
22 info = my_view(request)
23 self.assertEqual(info['root'].name, 'root')
24 self.assertEqual(info['project'], 'XonStat')