equal
deleted
inserted
replaced
18 |
18 |
19 class SQLAdapterMixInTC(TestCase): |
19 class SQLAdapterMixInTC(TestCase): |
20 |
20 |
21 def test_init(self): |
21 def test_init(self): |
22 o = SQLAdapterMixIn(BASE_CONFIG) |
22 o = SQLAdapterMixIn(BASE_CONFIG) |
23 self.assertEquals(o.encoding, 'UTF-8') |
23 self.assertEquals(o.dbhelper.dbencoding, 'UTF-8') |
24 |
24 |
25 def test_init_encoding(self): |
25 def test_init_encoding(self): |
26 config = BASE_CONFIG.copy() |
26 config = BASE_CONFIG.copy() |
27 config['db-encoding'] = 'ISO-8859-1' |
27 config['db-encoding'] = 'ISO-8859-1' |
28 o = SQLAdapterMixIn(config) |
28 o = SQLAdapterMixIn(config) |
29 self.assertEquals(o.encoding, 'ISO-8859-1') |
29 self.assertEquals(o.dbhelper.dbencoding, 'ISO-8859-1') |
30 |
30 |
31 if __name__ == '__main__': |
31 if __name__ == '__main__': |
32 unittest_main() |
32 unittest_main() |