@staticmethod
    def test_basic():
        query = ('CREATE TABLE orders ('
                 'customer_id INTEGER DISTKEY PRIMARY KEY,'
                 'customer_name VARCHAR(200))')

        output = parse_create_table(query)

        eq_(output['full_name'], 'orders')
        eq_(output['temporary'], False)
        eq_(output['exists_checks'], False)
        eq_(len(output['constraints']), 0)
        eq_(len(output['columns']), 2)
Basic test for create table
dataset/ETHPy150Open coursera/dataduct/dataduct/database/parsers/tests/test_create_table.py/TestCreateTableStatement.test_basic