session.configure(bind=engine)
model.metadata.create_all(engine)

def teardown():
    session.remove()

def test_something():
    instances = session.query(model.SomeObj).all()
eq_(0, len(instances))
session.add(model.SomeObj())
session.flush()
I need a sample of python unit testing sqlalchemy model with nose