Exemplo n.º 1
0
def test_parse_list_none():
    from webob.descriptors import parse_list

    result = parse_list(None)
    assert result is None
Exemplo n.º 2
0
def test_parse_list_unicode_single():
    from webob.descriptors import parse_list
    result = parse_list('avalue')
    assert result == ('avalue',)
Exemplo n.º 3
0
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list
    result = parse_list('avalue,avalue2')
    assert result == ('avalue', 'avalue2')
Exemplo n.º 4
0
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list
    result = parse_list('avalue,avalue2')
    eq_(result, ('avalue', 'avalue2'))
Exemplo n.º 5
0
def test_parse_list_none():
    from webob.descriptors import parse_list
    result = parse_list(None)
    assert result == None
Exemplo n.º 6
0
def test_parse_list_multiple():
    from webob.descriptors import parse_list

    result = parse_list("avalue,avalue2")
    assert result == ("avalue", "avalue2")
Exemplo n.º 7
0
def test_parse_list_unicode_single():
    from webob.descriptors import parse_list
    result = parse_list('avalue')
    eq_(result, ('avalue', ))
Exemplo n.º 8
0
def test_parse_list_unicode_single():
    from webob.descriptors import parse_list
    result = parse_list(u'avalue')
    eq_(result, ('avalue',))
Exemplo n.º 9
0
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list
    result = parse_list(u'avalue,avalue2')
    eq_(result, ('avalue', 'avalue2'))
Exemplo n.º 10
0
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list

    result = parse_list("avalue,avalue2")
    eq_(result, ("avalue", "avalue2"))
Exemplo n.º 11
0
def test_parse_list_none():
    from webob.descriptors import parse_list
    result = parse_list(None)
    eq_(result, None)
Exemplo n.º 12
0
def test_parse_list_single():
    from webob.descriptors import parse_list

    result = parse_list("avalue")
    eq_(result, ("avalue",))
Exemplo n.º 13
0
def test_parse_list_multiple():
    from webob.descriptors import parse_list
    result = parse_list('avalue,avalue2')
    assert result == ('avalue', 'avalue2')
Exemplo n.º 14
0
def test_parse_list_single():
    from webob.descriptors import parse_list
    result = parse_list('avalue')
    assert result == ('avalue', )
Exemplo n.º 15
0
def test_parse_list_unicode_single():
    from webob.descriptors import parse_list

    result = parse_list("avalue")
    assert result == ("avalue", )
Exemplo n.º 16
0
def test_parse_list_none():
    from webob.descriptors import parse_list
    result = parse_list(None)
    eq_(result, None)
Exemplo n.º 17
0
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list

    result = parse_list("avalue,avalue2")
    assert result == ("avalue", "avalue2")
Exemplo n.º 18
0
def test_parse_list_single():
    from webob.descriptors import parse_list

    result = parse_list("avalue")
    assert result == ("avalue",)