示例#1
0
def test_body_match_does_not_match(r1, r2):
    with pytest.raises(AssertionError):
        matchers.body(r1, r2)
示例#2
0
def test_body_matcher_does_match(r1, r2):
    assert matchers.body(r1, r2) is None
示例#3
0
def test_body_match_does_not_match(r1, r2):
    assert not matchers.body(r1, r2)
示例#4
0
def test_body_matcher_does_match(r1, r2):
    assert matchers.body(r1, r2)
示例#5
0
def extended_vcr_body_matcher(received_request, cassette_request):
    with signal_context(
            "additional_body_matching",
            dict(cassette_request=cassette_request,
                 received_request=received_request)) as body_matched:
        return body_matched or body(cassette_request, received_request)
示例#6
0
def test_body_match_does_not_match(r1, r2):
    assert not matchers.body(r1, r2)