Use real Response object in DjrillBackendMockAPITestCase tests.

(Improves testing accuracy around API response encoding.)

* Add `six` as test dependency (six.BytesIO, six.b)
* Change MockResponse content to bytes (because HTTP responses
  are bytes, not strings)
This commit is contained in:
medmunds
2015-01-16 13:18:17 -08:00
parent 4754ef7650
commit 11961b57e5
4 changed files with 13 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ setup(
install_requires=["requests>=1.0.0", "django>=1.3"],
include_package_data=True,
test_suite="runtests.runtests",
tests_require=["mock"],
tests_require=["mock", "six"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: PyPy",