Exemple #1
0
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')
Exemple #2
0
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\'')
Exemple #3
0
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')
Exemple #4
0
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\'')