diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2011-09-04 09:14:03 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2011-09-04 09:14:03 +0200 |
| commit | 314d66c59c125b45f1ab1141d0ecc07bb4648c9c (patch) | |
| tree | 655a8a2e73f7a936fe8ba7edc70da49374228124 /tests | |
| parent | 52817d0626b40614159c1de72c82c60d775a670e (diff) | |
| download | sqlparse-314d66c59c125b45f1ab1141d0ecc07bb4648c9c.tar.gz | |
Replace assertListEqual by assertEqual for backwards compatibility.
There's no need to call assertListEqual, assertEqual() in Python >=
2.7 automatically chooses the right equality function for us.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_pipeline.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index 96c2e1c..56eed4a 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -21,7 +21,7 @@ class Test(unittest.TestCase): INSERT INTO directories(inode) VALUES(:inode) LIMIT 1""" - self.assertListEqual([], self.pipe(sql)) + self.assertEqual([], self.pipe(sql)) def test_2(self): sql = """ @@ -29,8 +29,8 @@ class Test(unittest.TestCase): FROM links WHERE parent_dir == :parent_dir AND name == :name LIMIT 1""" - self.assertListEqual([u'child_entry', u'inode', u'creation'], - self.pipe(sql)) + self.assertEqual([u'child_entry', u'inode', u'creation'], + self.pipe(sql)) def test_3(self): sql = """ @@ -63,7 +63,7 @@ class Test(unittest.TestCase): GROUP BY dir_entries.inode LIMIT 1""" - self.assertListEqual([u'st_dev', u'st_uid', u'st_gid', u'st_mode', - u'st_ino', u'st_nlink', u'st_ctime', - u'st_atime', u'st_mtime', u'st_size', u'size'], - self.pipe(sql)) + self.assertEqual([u'st_dev', u'st_uid', u'st_gid', u'st_mode', + u'st_ino', u'st_nlink', u'st_ctime', + u'st_atime', u'st_mtime', u'st_size', u'size'], + self.pipe(sql)) |
