Merge "Fix test_migrate_cli for py3"

This commit is contained in:
Jenkins 2014-12-09 16:29:26 +00:00 committed by Gerrit Code Review
commit b60b3fe7bf

@ -22,8 +22,10 @@ class MockWithCmp(mock.MagicMock):
order = 0
def __cmp__(self, other):
return self.order > other.order
def __init__(self, *args, **kwargs):
super(MockWithCmp, self).__init__(*args, **kwargs)
self.__lt__ = lambda self, other: self.order < other.order
@mock.patch(('oslo.db.sqlalchemy.migration_cli.'