summaryrefslogtreecommitdiff
path: root/tests/test_split.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_split.py')
-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)