Example #1
0
def test_parse_etag_response_is_none():
    from webob.descriptors import parse_etag_response

    etresp = parse_etag_response(None)
    assert etresp is None
Example #2
0
def test_parse_etag_response():
    from webob.descriptors import parse_etag_response

    etresp = parse_etag_response("etag")
    assert etresp == "etag"
Example #3
0
def test_parse_etag_response_quoted():
    from webob.descriptors import parse_etag_response

    etresp = parse_etag_response('"etag"')
    assert etresp == "etag"
Example #4
0
def test_parse_etag_response_is_none():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response(None)
    assert etresp == None
Example #5
0
 def etag_strong(self):
     return parse_etag_response(self._etag_raw, strong=True)
Example #6
0
def test_parse_etag_response():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response("etag")
    assert etresp == "etag"
Example #7
0
def test_parse_etag_response_quoted():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response('"etag"')
    assert etresp == "etag"
Example #8
0
 def etag_strong(self):
     return parse_etag_response(self._etag_raw, strong=True)
Example #9
0
def test_parse_etag_response_is_none():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response(None)
    eq_(etresp, None)
Example #10
0
def test_parse_etag_response_quoted():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response('"etag"')
    eq_(etresp, "etag")
Example #11
0
def test_parse_etag_response_is_none():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response(None)
    eq_(etresp, None)
Example #12
0
def test_parse_etag_response_quoted():
    from webob.descriptors import parse_etag_response
    etresp = parse_etag_response('"etag"')
    eq_(etresp, "etag")