python-openstackclient/openstackclient
Eric Fried f1d742f32a Fix functional tests for py3
Fix various things so the functional tests will work under python3:

- A hashlib.md5() can only be update()d with an encoded string in py3.
- There's no dict.iteritems(), change to dict.items() (which is already
  an iterator).
- Open temp files with 'w+' mode rather than the default 'w+b' (as an
  alternative to encoding all the write and expected-read payloads as
  bytes).
- (This is a weird one) Explicitly raise SkipTest from unittest (rather
  than unittest2, which is where cls.skipException landed). Not sure why
  this is busted, but this moves the ball.

Change-Id: Ic9b2b47848a600e87a3674289ae7ae8c3e091fee
2019-10-31 00:17:35 +00:00
..
api Remove token_endpoint auth type 2019-08-27 11:08:50 -05:00
common Clean up app initialization and config 2019-09-09 14:01:57 +00:00
compute Merge "Add 'openstack server migrate (confirm|revert)' commands" 2019-10-03 11:19:48 +00:00
identity Merge "Add parent project filter for listing projects" 2019-10-22 21:16:40 +00:00
image Use cliff formattable columns in image commands 2019-06-22 13:36:46 -05:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Add floating IP Port Forwarding commands" 2019-09-09 16:12:23 +00:00
object Use cliff formattable columns in object storage commands 2019-06-22 18:44:27 +00:00
tests Fix functional tests for py3 2019-10-31 00:17:35 +00:00
volume Default to Cinder v3 API 2019-09-09 09:35:44 -05:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Clean up app initialization and config 2019-09-09 14:01:57 +00:00