summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorquest <quest@wonky.windwards.net>2012-04-21 22:37:30 +0200
committerquest <quest@wonky.windwards.net>2012-04-21 22:37:30 +0200
commit1e3fbade7c80d917b4d727e9cef781b21be2fdf6 (patch)
treed2b47257dadc6d817db7a0e82c0539eaa3a89f7e /tests
parent61f22063051fa94b0f055a995eed10b576535c29 (diff)
downloadsqlparse-1e3fbade7c80d917b4d727e9cef781b21be2fdf6.tar.gz
splitstream -> parsestream
Diffstat (limited to 'tests')
-rw-r--r--tests/test_split.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_split.py b/tests/test_split.py
index 574dd97..321fca2 100644
--- a/tests/test_split.py
+++ b/tests/test_split.py
@@ -121,12 +121,12 @@ class SQLSplitTest(TestCaseBase):
from cStringIO import StringIO
stream = StringIO("SELECT 1; SELECT 2;")
- stmts = sqlparse.splitstream(stream)
+ stmts = sqlparse.parsestream(stream)
self.assertEqual(type(stmts), types.GeneratorType)
self.assertEqual(len(list(stmts)), 2)
- def test_encoding_splitstream(self):
+ def test_encoding_parsestream(self):
from cStringIO import StringIO
stream = StringIO("SELECT 1; SELECT 2;")
- stmts = list(sqlparse.splitstream(stream))
+ stmts = list(sqlparse.parsestream(stream))
self.assertEqual(type(stmts[0].tokens[0].value), unicode)