1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 09:35:34 +00:00
This commit is contained in:
Kevin McCarthy
2012-07-02 10:00:18 -10:00
parent e1cd92b14d
commit bf844c6952
2 changed files with 18 additions and 21 deletions

View File

@@ -87,6 +87,7 @@ class TestHttps(unittest.TestCase):
body = urllib2.urlopen('https://httpbin.org/post', TEST_DATA).read()
self.assertEqual(body, urllib2.urlopen('https://httpbin.org/post', TEST_DATA).read())
class TestCassette(unittest.TestCase):
def test_serialize_cassette(self):
c1 = Cassette()
@@ -97,8 +98,5 @@ class TestCassette(unittest.TestCase):
self.assertEqual(c1.requests, c2.requests)
self.assertEqual(c1.responses, c2.responses)
if __name__ == '__main__':
unittest.main()

View File

@@ -1,4 +1,3 @@
import socket
from httplib import HTTPConnection, HTTPSConnection, HTTPMessage
from cStringIO import StringIO
from .files import save_cassette, load_cassette