1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Removed last dependencies on unittest. All tests are pytest-only.

This commit is contained in:
Jakub Roztocil
2014-04-25 11:39:59 +02:00
parent f658d24c93
commit 27faf06327
13 changed files with 52 additions and 68 deletions

View File

@@ -1,13 +1,11 @@
"""Tests for dealing with binary request and response data."""
from unittest import TestCase
from httpie.compat import urlopen
from httpie.output import BINARY_SUPPRESSED_NOTICE
from tests import TestEnvironment, http, httpbin
from tests.fixtures import BIN_FILE_PATH, BIN_FILE_CONTENT, BIN_FILE_PATH_ARG
class BinaryRequestDataTest(TestCase):
class TestBinaryRequestData:
def test_binary_stdin(self):
with open(BIN_FILE_PATH, 'rb') as stdin:
env = TestEnvironment(
@@ -31,7 +29,7 @@ class BinaryRequestDataTest(TestCase):
assert bytes(BIN_FILE_CONTENT) in bytes(r)
class BinaryResponseDataTest(TestCase):
class TestBinaryResponseData:
url = 'http://www.google.com/favicon.ico'
@property