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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_split.py b/tests/test_split.py
index f0b6dda..e4ebf7e 100644
--- a/tests/test_split.py
+++ b/tests/test_split.py
@@ -131,3 +131,10 @@ class SQLSplitTest(TestCaseBase):
stream = StringIO("SELECT 1; SELECT 2;")
stmts = list(sqlparse.parsestream(stream))
self.assertEqual(type(stmts[0].tokens[0].value), unicode)
+
+
+def test_split_simple():
+ stmts = sqlparse.split('select * from foo; select * from bar;')
+ assert len(stmts) == 2
+ assert stmts[0] == 'select * from foo;'
+ assert stmts[1] == 'select * from bar;'