def test_simpleassert(self): """test description """ einstein = Individual('einstein') Session.commit() ind1 = Individual.get_by(name = 'einstein') assert ind1 == einstein
def test_simpleassert(self): """test description """ einstein = Individual('einstein') Session.commit() ind1 = Individual.get_by(name='einstein') assert ind1 == einstein
def test_exception(self): me = Individual('giuseppe') me_again = Individual('giuseppe') self.assertRaises(IntegrityError, Session.commit) Session.rollback()
def test_session(self): assert Session.connection().dialect.name is 'sqlite'