Use _VersionsEqual for a few more version tests

Seems like a few tests are failing randomly failing since the
expected and returned data may be in different order.

Change-Id: Ic067f4228d5e2fb0e0f7156325179b0ee3cfc8c4
Closes-Bug: #1420141
This commit is contained in:
Steve Martinelli 2015-02-10 02:56:06 -05:00 committed by Brant Knudson
parent 8ba0c166e5
commit 15fb5d68cd
1 changed files with 2 additions and 2 deletions

View File

@ -795,7 +795,7 @@ class VersionBehindSslTestCase(tests.TestCase):
self.assertEqual(300, resp.status_int)
data = jsonutils.loads(resp.body)
expected = self._get_expected(host)
self.assertEqual(expected, data)
self.assertThat(data, _VersionsEqual(expected))
def test_versions_with_header(self):
client = self.client(self.public_app)
@ -807,4 +807,4 @@ class VersionBehindSslTestCase(tests.TestCase):
data = jsonutils.loads(resp.body)
expected = self._get_expected('https://%s:%s/' % (host_name,
host_port))
self.assertEqual(expected, data)
self.assertThat(data, _VersionsEqual(expected))