Skip to content

Commit

Permalink
Fixes test nits from a previous review
Browse files Browse the repository at this point in the history
See https://review.openstack.org/#/c/159521 for the original review.

Change-Id: Ie8805a5cdf4a5d26b27b4f992f7d3c7e6a5ae372
  • Loading branch information
dstanek committed May 4, 2015
1 parent 885a49d commit 859a03a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions keystone/tests/unit/test_backend_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ def assertExpectedSchema(self, table, expected_schema):
:param string table: the name of the table to inspect
:param tuple expected_schema: a tuple of tuples containing the
expected schema
:raises: AssertionError
:raises AssertionError: when the database schema doesn't match the
expected schema
The expected_shema format is simply::
The expected_schema format is simply::
(
('column name', sql type, qualifying detail),
Expand Down Expand Up @@ -119,8 +120,7 @@ def assertExpectedSchema(self, table, expected_schema):
else:
actual_schema.append((column.name, type(column.type), None))

self.assertEqual(list(sorted(expected_schema)),
list(sorted(actual_schema)))
self.assertItemsEqual(expected_schema, actual_schema)

def test_user_model(self):
cols = (('id', sql.String, 64),
Expand Down

0 comments on commit 859a03a

Please sign in to comment.