diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-13 22:01:53 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-15 13:29:13 -0700 |
| commit | 4f922d9b6fb68b8281c6b3d93a57a4c84860e06a (patch) | |
| tree | 8101d546c24b473e90874b7dc88b0ec1d1bf1550 /tests | |
| parent | 711744d1664f8244d8ab0b090cbf12e923101cce (diff) | |
| download | sqlparse-4f922d9b6fb68b8281c6b3d93a57a4c84860e06a.tar.gz | |
Rename token_idx_ funcs to simply token_ funcs
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_grouping.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_grouping.py b/tests/test_grouping.py index 4f904cf..272d266 100644 --- a/tests/test_grouping.py +++ b/tests/test_grouping.py @@ -128,10 +128,10 @@ class TestGrouping(TestCaseBase): p = sqlparse.parse("select * from (" "select a, b + c as d from table) sub")[0] subquery = p.tokens[-1].tokens[0] - idx, iden_list = subquery.token_idx_next_by(i=sql.IdentifierList) + idx, iden_list = subquery.token_next_by(i=sql.IdentifierList) self.assert_(iden_list is not None) # all the identifiers should be within the IdentifierList - _, ilist = subquery.token_idx_next_by(i=sql.Identifier, idx=idx) + _, ilist = subquery.token_next_by(i=sql.Identifier, idx=idx) self.assert_(ilist is None) def test_identifier_list_case(self): |
