1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00
Files
vcrpy/tests/unit/test_matchers.py
2014-04-30 02:27:51 +02:00

14 lines
467 B
Python

from vcr import matchers
from vcr import request
def test_method():
req_get = request.Request('http', 'google.com', 80, 'GET', '/', '', {})
assert True == matchers.method(req_get, req_get)
req_get1 = request.Request('https', 'httpbin.org', 80, 'GET', '/', '', {})
assert True == matchers.method(req_get, req_get1)
req_post = request.Request('http', 'google.com', 80, 'POST', '/', '', {})
assert False == matchers.method(req_get, req_post)