Exemple #1
0
def test_parse_if_range_date_etagmatcher():
    from webob.descriptors import parse_if_range
    from webob.etag import ETagMatcher
    ifr = parse_if_range("2011-03-15 01:24:43.272409")
    eq_(type(ifr.etag), ETagMatcher)
Exemple #2
0
def test_parse_if_range_date_ifr():
    from webob.descriptors import parse_if_range
    from webob.descriptors import IfRange
    ifr = parse_if_range("2011-03-15 01:24:43.272409")
    eq_(type(ifr), IfRange)
Exemple #3
0
def test_parse_if_range_is_None():
    from webob.descriptors import parse_if_range
    from webob.descriptors import NoIfRange
    eq_(NoIfRange, parse_if_range(None))
def test_parse_if_range_date_etagmatcher():
    from webob.descriptors import parse_if_range
    from webob.etag import ETagMatcher
    ifr = parse_if_range("2011-03-15 01:24:43.272409")
    eq_(type(ifr.etag), ETagMatcher)
def test_parse_if_range_date_ifr():
    from webob.descriptors import parse_if_range
    from webob.descriptors import IfRange
    ifr = parse_if_range("2011-03-15 01:24:43.272409")
    eq_(type(ifr), IfRange)
def test_parse_if_range_is_None():
    from webob.descriptors import parse_if_range
    from webob.descriptors import NoIfRange
    eq_(NoIfRange, parse_if_range(None))