when creating an instance, ask for cubes specific options properly (fix #607349)
"""unit tests for module cubicweb.server.sqlutils:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""importsysfromlogilab.common.testlibimportTestCase,unittest_mainfromcubicweb.server.sqlutilsimport*BASE_CONFIG={'db-driver':'Postgres','db-host':'crater','db-name':'cubicweb2_test','db-user':'toto','db-upassword':'toto',}classSQLAdapterMixInTC(TestCase):deftest_init(self):o=SQLAdapterMixIn(BASE_CONFIG)self.assertEquals(o.encoding,'UTF-8')deftest_init_encoding(self):config=BASE_CONFIG.copy()config['db-encoding']='ISO-8859-1'o=SQLAdapterMixIn(config)self.assertEquals(o.encoding,'ISO-8859-1')if__name__=='__main__':unittest_main()