import unittest
import transaction

from pyramid import testing

from .models import DBSession


class TestCharsheet(unittest.TestCase):

    def setUp(self):
        self.config = testing.setUp()
        from sqlalchemy import create_engine
        engine = create_engine('sqlite://')
        from .models import (
            Base,
            )
        DBSession.configure(bind=engine)
        Base.metadata.create_all(engine)
        with transaction.manager:
            # add models here
            pass

    def tearDown(self):
        DBSession.remove()
        testing.tearDown()

    def basic_test(self):
        from .views import charsheet
        request = testing.DummyRequest()
        info = charsheet(request)
        self.assertEqual(info['project'], 'charsheet')

@@ -596,18 +596,18 @@
 def 
+test_
 basic
-_test
 (sel
@@ -637,25 +637,25 @@
  import 
-charsheet
+home_view
 %0A       
@@ -703,25 +703,25 @@
  info = 
-charsheet
+home_view
 (request

tweak test file, though still doesn't work