def test_build_set_prepared(): gen = build_set( OrderedDict([ ('custom_param', param('myparam')), ('auto_param', autoparam), ])) eq_(gen, '"custom_param"=%(myparam)s, "auto_param"=%(auto_param)s')
def test_build_set(): gen = build_set( OrderedDict([ ('a', 1), ('b', True), ('c', date(2013, 4, 16)), ])) eq_(gen, '"a"=1, "b"=TRUE, "c"=\'2013-04-16\'')
def test_build_set_prepared(): gen = build_set(OrderedDict([("custom_param", param("myparam")), ("auto_param", autoparam)])) eq_(gen, '"custom_param"=%(myparam)s, "auto_param"=%(auto_param)s')
def test_build_set(): gen = build_set(OrderedDict([("a", 1), ("b", True), ("c", date(2013, 4, 16))])) eq_(gen, '"a"=1, "b"=TRUE, "c"=\'2013-04-16\'')