def do_test(): adapter = dbadapter.DbAdapter('sqlite') adapter.open_database(dbconfig.DbConfig('testdb.ldb')) Post.database = adapter dbgenerator.DbGenerator.database = adapter generator_tester = Post() test_utils.ensure_equal(generator_tester.get_table_name(), 'posts') generator_tester.table_from_metalang() dbgenerator.DbGenerator.make_class(db_text)
def do_test(): test_utils.ensure_equal(TestMetaInfo.class_name_to_lower(), 'testmetainfo')