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