equal
deleted
inserted
replaced
34 |
34 |
35 class SQLAdapterMixInTC(TestCase): |
35 class SQLAdapterMixInTC(TestCase): |
36 |
36 |
37 def test_init(self): |
37 def test_init(self): |
38 o = SQLAdapterMixIn(BASE_CONFIG) |
38 o = SQLAdapterMixIn(BASE_CONFIG) |
39 self.assertEquals(o.dbhelper.dbencoding, 'UTF-8') |
39 self.assertEqual(o.dbhelper.dbencoding, 'UTF-8') |
40 |
40 |
41 def test_init_encoding(self): |
41 def test_init_encoding(self): |
42 config = BASE_CONFIG.copy() |
42 config = BASE_CONFIG.copy() |
43 config['db-encoding'] = 'ISO-8859-1' |
43 config['db-encoding'] = 'ISO-8859-1' |
44 o = SQLAdapterMixIn(config) |
44 o = SQLAdapterMixIn(config) |
45 self.assertEquals(o.dbhelper.dbencoding, 'ISO-8859-1') |
45 self.assertEqual(o.dbhelper.dbencoding, 'ISO-8859-1') |
46 |
46 |
47 if __name__ == '__main__': |
47 if __name__ == '__main__': |
48 unittest_main() |
48 unittest_main() |