예제 #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)