示例#1
0
def test_serialize_range():
    from webob.descriptors import serialize_range

    val = serialize_range((1, 500))
    assert val == "bytes=1-499"
示例#2
0
def test_serialize_range():
    from webob.descriptors import serialize_range
    val = serialize_range((1,500))
    assert val == 'bytes=1-499'
示例#3
0
def test_serialize_range_none():
    from webob.descriptors import serialize_range

    val = serialize_range(None)
    assert val is None
示例#4
0
def test_serialize_range_none():
    from webob.descriptors import serialize_range
    val = serialize_range(None)
    assert val == None
示例#5
0
def test_serialize_range():
    from webob.descriptors import serialize_range
    val = serialize_range((1, 500))
    eq_(val, 'bytes=1-499')
示例#6
0
def test_serialize_range_none():
    from webob.descriptors import serialize_range
    val = serialize_range(None)
    eq_(val, None)
示例#7
0
def test_serialize_range():
    from webob.descriptors import serialize_range
    val = serialize_range((1,500))
    eq_(val, 'bytes=1-499')
示例#8
0
def test_serialize_range_none():
    from webob.descriptors import serialize_range
    val = serialize_range(None)
    eq_(val, None)