summaryrefslogtreecommitdiff
path: root/tests/test_format.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2009-04-24 15:05:23 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2009-04-24 15:05:23 +0200
commitbe3b2d73ef118fa5bbf1549e2f9a71baae709cea (patch)
tree1460b34e1f0a29dd5c17b3fb3a226091f70b79b6 /tests/test_format.py
parent3bbc94129d3a9597f8218ba19c097620cf352137 (diff)
downloadsqlparse-be3b2d73ef118fa5bbf1549e2f9a71baae709cea.tar.gz
Handle wildcards in identifiers.
Diffstat (limited to 'tests/test_format.py')
-rw-r--r--tests/test_format.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_format.py b/tests/test_format.py
index 3180d10..4c2742d 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -134,6 +134,11 @@ class TestFormatReindent(TestCaseBase):
'from table1,',
' table2',
'where 1 = 2']))
+ s = 'select a.*, b.id from a, b'
+ self.ndiffAssertEqual(f(s), '\n'.join(['select a.*,',
+ ' b.id',
+ 'from a,',
+ ' b']))
def test_case(self):
f = lambda sql: sqlparse.format(sql, reindent=True)