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

        exists_clone = create_exists_clone(query)
        output = parse_create_table(exists_clone)
        eq_(output['full_name'], 'orders')
        eq_(output['temporary'], False)
        eq_(output['exists_checks'], True)
Basic test for create table clone with exists condition
dataset/ETHPy150Open coursera/dataduct/dataduct/database/parsers/tests/test_create_table.py/TestCreateTableStatement.test_exists_clone