Exemple #1
0
def test_parse_list_none():
    from webob.descriptors import parse_list

    result = parse_list(None)
    assert result is None
def test_parse_list_unicode_single():
    from webob.descriptors import parse_list
    result = parse_list('avalue')
    assert result == ('avalue',)
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list
    result = parse_list('avalue,avalue2')
    assert result == ('avalue', 'avalue2')
Exemple #4
0
def test_parse_list_unicode_multiple():
    from webob.descriptors import parse_list
    result = parse_list('avalue,avalue2')
    eq_(result, ('avalue', 'avalue2'))
def test_parse_list_none():
    from webob.descriptors import parse_list
    result = parse_list(None)
    assert result == None
Exemple #6
0
def test_parse_list_multiple():
    from webob.descriptors import parse_list

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

    result = parse_list("avalue,avalue2")
    eq_(result, ("avalue", "avalue2"))
Exemple #11
0
def test_parse_list_none():
    from webob.descriptors import parse_list
    result = parse_list(None)
    eq_(result, None)
def test_parse_list_single():
    from webob.descriptors import parse_list

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

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

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

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