diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2009-07-12 09:28:05 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2009-07-12 09:28:05 +0200 |
| commit | 9114ff791c224f8edfa6f1ff00ae57e8e3296f75 (patch) | |
| tree | 4702e934c4f6d9639fb704329ecdb9973ae26d12 /tests/test_grouping.py | |
| parent | d47657d07ab900604547efd0a4eb288775ad43b9 (diff) | |
| download | sqlparse-9114ff791c224f8edfa6f1ff00ae57e8e3296f75.tar.gz | |
Distinguish between operators that are part of a comparsion and others.
Diffstat (limited to 'tests/test_grouping.py')
| -rw-r--r-- | tests/test_grouping.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_grouping.py b/tests/test_grouping.py index 8d62ea4..6331317 100644 --- a/tests/test_grouping.py +++ b/tests/test_grouping.py @@ -136,10 +136,12 @@ class TestGrouping(TestCaseBase): def test_comparsion_exclude(self): # make sure operators are not handled too lazy - p = sqlparse.parse('(+)')[0] + p = sqlparse.parse('(=)')[0] self.assert_(isinstance(p.tokens[0], Parenthesis)) self.assert_(not isinstance(p.tokens[0].tokens[1], Comparsion)) - p = sqlparse.parse('(a+1)')[0] + p = sqlparse.parse('(a=1)')[0] + self.assert_(isinstance(p.tokens[0].tokens[1], Comparsion)) + p = sqlparse.parse('(a>=1)')[0] self.assert_(isinstance(p.tokens[0].tokens[1], Comparsion)) def test_function(self): |
