diff options
Diffstat (limited to 'tests/high_level_curl_test.py')
-rw-r--r-- | tests/high_level_curl_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/high_level_curl_test.py b/tests/high_level_curl_test.py index 3dce1b3..ce3e250 100644 --- a/tests/high_level_curl_test.py +++ b/tests/high_level_curl_test.py @@ -18,6 +18,15 @@ class RelativeUrlTest(unittest.TestCase): def tearDown(self): self.curl.close() + def test_get(self): + result = self.curl.get('/success') + self.assertEqual('success', result.decode()) + + def test_head(self): + result = self.curl.head('/success') + self.assertEqual('', result.decode()) + self.assertEqual(200, self.curl.info()['http-code']) + def test_reuse(self): result = self.curl.get('/success') self.assertEqual('success', result.decode()) |