コード例 #1
0
 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))
コード例 #2
0
 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))