1
1
from projectname.tests import *
2
2
from sqlalchemy.exceptions import IntegrityError
4
4
from projectname.model import Foo
6
6
class TestSQLAlchemyController(TestController):
9
9
f = Foo(id = 1, bar = u"Wabbit")
12
12
assert f.bar == u"Wabbit"
17
17
def test_sqlalchemy(self):
18
18
response = self.app.get(url(controller='sample', action='testsqlalchemy'))