nova/nova/tests/unit/db
Spencer Yu 45043e9740 [3/3]Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

The patch list:
    tests.

Partial-Implements: blueprint replace-iteritems-with-items

Change-Id: I2d09c1d06370fed9c7c116a9eedea929fa5b5dc2
2017-02-09 23:09:38 +08:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py [3/3]Replace six.iteritems() with .items() 2017-02-09 23:09:38 +08:00
test_db_api.py [3/3]Replace six.iteritems() with .items() 2017-02-09 23:09:38 +08:00
test_migration_utils.py Unwind circular import issue with api / utils 2016-09-27 15:05:56 -04:00
test_migrations.py Add index on instances table across project_id and updated_at 2016-11-22 01:40:38 +00:00
test_models.py Test that new tables don't use soft deletes 2016-02-04 09:21:31 -05:00
test_sqlalchemy_migration.py Only warn about hostmappings during ocata upgrade 2017-01-25 17:33:48 -08:00