def test_serialize_range(): from webob.descriptors import serialize_range val = serialize_range((1, 500)) assert val == "bytes=1-499"
def test_serialize_range(): from webob.descriptors import serialize_range val = serialize_range((1,500)) assert val == 'bytes=1-499'
def test_serialize_range_none(): from webob.descriptors import serialize_range val = serialize_range(None) assert val is None
def test_serialize_range_none(): from webob.descriptors import serialize_range val = serialize_range(None) assert val == None
def test_serialize_range(): from webob.descriptors import serialize_range val = serialize_range((1, 500)) eq_(val, 'bytes=1-499')
def test_serialize_range_none(): from webob.descriptors import serialize_range val = serialize_range(None) eq_(val, None)
def test_serialize_range(): from webob.descriptors import serialize_range val = serialize_range((1,500)) eq_(val, 'bytes=1-499')