]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure test_metaplugin handles random hashseeds
authorSam Betts <sam@code-smash.net>
Mon, 20 Oct 2014 12:26:33 +0000 (13:26 +0100)
committerSam Betts <sam@code-smash.net>
Mon, 5 Jan 2015 10:02:15 +0000 (10:02 +0000)
commit706deaeaed3c9b8ccd71500590c8d3b3cff5802e
treeae678b051cfb70d360b1e79dc183ccc22322fc91
parent5de1d2ed67e00a010f23c5f9055556745a55957a
Ensure test_metaplugin handles random hashseeds

2 tests fail in test_metaplugin when using hashseed 2701526934 this is
down to the nature of using dictionaries and sets in Python having
unpredictable ordering when retrieving data stored in them. This patch
ensures that no matter the order fake1 and fake2 get placed into
self.plugins that the test can assert both possible scenarios.

Change-Id: I65fa6979cc0d6e3531e50f249c53db6be83a6cfe
Partial-Bug: 1348818
neutron/tests/unit/metaplugin/test_metaplugin.py