remove unused working_hours function, new todate function since we can't compare date and datetime objects
"""unit tests for module cubicweb.server.sqlutils"""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()