@staticmethod
    def test_creates_view_failure_not_first_statement():
        script = SqlScript("""
            SELECT * FROM test_begin;
            CREATE VIEW test_begin AS (SELECT * FROM test_table);
        """)
        eq_(script.creates_view(), False)
Correctly recognizes bad syntax when creating a view
dataset/ETHPy150Open coursera/dataduct/dataduct/database/sql/tests/test_sql_script.py/TestSqlScript.test_creates_view_failure_not_first_statement--crossover with--dataset/ETHPy150Open coursera/dataduct/dataduct/database/sql/tests/test_sql_script.py/TestSqlScript.test_creates_view_failure_bad_syntax