'test literal rendering'

@testing.provide_metadata
def _literal_round_trip(self, type_, input_, output, filter_=None):

    t = Table('t', self.metadata, Column('x', type_))
    t.create()
    for value in input_:
        ins = t.insert().values(x=literal(value)).compile(dialect=testing.db.dialect, compile_kwargs=dict(literal_binds=True))
        testing.db.execute(ins)
    for row in t.select().execute():
        value = row[0]
        if (filter_ is not None):
            value = filter_(value)
        assert (value in output)
