Predictable unit test label order

This should fix the gate jobs

Change-Id: I6a058485ae1ecb3b47ff19af178819f8d0c6bf97
This commit is contained in:
Steve Baker 2017-05-01 11:43:51 +12:00
parent 2ed8091cc2
commit 508468b84d
1 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import collections
import mock
from paunch.builder import compose1
@ -106,10 +107,10 @@ class TestComposeV1Builder(base.TestCase):
'--label', 'managed_by=tester'],
cmd)
labels = {
'foo': 'bar',
'bar': 'baz'
}
labels = collections.OrderedDict()
labels['foo'] = 'bar'
labels['bar'] = 'baz'
builder = compose1.ComposeV1Builder('foo', {}, r, labels=labels)
cmd = []
builder.label_arguments(cmd, 'one')