mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
@@ -51,7 +51,7 @@ You can also use VCR.py as a decorator. The same request above would look like
|
|||||||
this:
|
this:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@vcr.use_cassette('fixtures/vcr_cassettes/synopsis.yaml'):
|
@vcr.use_cassette('fixtures/vcr_cassettes/synopsis.yaml')
|
||||||
def test_iana():
|
def test_iana():
|
||||||
response = urllib2.urlopen('http://www.iana.org/domains/reserved').read()
|
response = urllib2.urlopen('http://www.iana.org/domains/reserved').read()
|
||||||
assert 'Example domains' in response
|
assert 'Example domains' in response
|
||||||
|
|||||||
Reference in New Issue
Block a user