

def assertOrder(self, *versions):
    'Assert that ``by_version`` orders given versions as listed.'
    from moztrap.model.core.models import by_version
    objs = [o.F.ProductVersionFactory(version=v) for v in reversed(versions)]
    candidate = [o.version for o in sorted(objs, key=by_version)]
    self.assertEqual(candidate, list(versions))

dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py SortByVersionTest.assertOrder/VarMisuse@29/54 `self`->`o`