trove-dashboard/trove_dashboard
Zhao Chao 996e134a1c Fix str and dict usages in unittests for Python3
- use six.text_type instead of unicode for assertion;
- use dict.items() instead of dict.iteritems() for dict iteration;
- use six.text_type to capture exception messages, the 'message' attribute
  is no longer existing;
- dict.keys() returns a dict_keys object under Python3 which cannot be
  reversed, explicitly convert it to a list.

Partial-Bug: #1755413

Change-Id: I5d31397b7bfe08b504ee5b9cd4ff894031f66c2b
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-03-15 21:23:05 +08:00
..
api Switch to oslo_log 2018-01-11 04:37:41 +00:00
content Fix str and dict usages in unittests for Python3 2018-03-15 21:23:05 +08:00
enabled Remove empty files 2018-01-26 17:36:50 +07:00
locale Imported Translations from Zanata 2018-03-07 07:33:09 +00:00
static Deprecated error method 2018-01-29 01:29:04 -08:00
test Fix import heat_data error for tests 2017-12-14 21:39:33 +08:00
utils Fix binascii hexlify under Python 3 2018-03-14 17:37:04 +08:00
__init__.py Completing the plugin 2015-12-18 15:53:31 -07:00
exceptions.py Completing the plugin 2015-12-18 15:53:31 -07:00
version.py Add reno for release notes management 2016-04-14 20:56:32 +00:00