def test_compare(self): for a, b, expected in self.versions: result = base.compare(a, b) self.assertEqual( expected, result, "compare(%r, %r) should be %r instead of %r" % (a, b, expected, result))
def test_compare(self): for a, b, expected in self.versions: result = base.compare(a, b) self.assertEqual(expected, result, "compare(%r, %r) should be %r instead of %r" % (a, b, expected, result))