]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Port test_netapp to Python 3
authorVictor Stinner <vstinner@redhat.com>
Fri, 2 Oct 2015 15:35:37 +0000 (17:35 +0200)
committerVictor Stinner <vstinner@redhat.com>
Fri, 2 Oct 2015 15:47:39 +0000 (17:47 +0200)
commit28e9a940323e4ebe46a875add1a87f113ec6c610
tree2d255f55e5d78cfec706d3327cd6bdbd2668a2b6
parent17e6aef23fdf6e06fee139693629d4171fc8a763
Port test_netapp to Python 3

* Add close() method to FakeHttplibSocket,
  FakeDirectCmodeHTTPConnection, FakeDirect7modeHTTPConnection
* Replace StringIO() with BytesIO() for socket buffers
* makefile(): ignore optional arguments after mode
* Fix bytes versus Unicode: use bytes for HTTP body. Encode HTTP body
  to UTF-8 and HTTP headers to Latin1.
* tox.ini: add cinder.tests.unit.test_netapp to Python 3.4

Partial-Implements: blueprint cinder-python3
Change-Id: I3dc8c36a84ffbb47be3e85eed34518c6adad48ec
cinder/tests/unit/test_netapp.py
tox.ini