def test_insert(): sql = mod.Insert('foo', vals=mod.sqlarray(3)) assert str(sql) == 'INSERT INTO foo VALUES (?, ?, ?);'
def test_sqlarray_zero(): assert mod.sqlarray(0) == ''
def test_sqlarray_list(): assert mod.sqlarray(['foo', 'bar', 'baz']) == '(?, ?, ?)'
def test_sqlarray(): assert mod.sqlarray(2) == '(?, ?)'