Beispiel #1
0
 def assert_combined_status(self, a, b, expected):
     # Should be symmetric so check the arguments both ways round.
     for lhs, rhs in [(a, b), (b, a)]:
         result = combine_statuses(lhs, rhs)
         self.assertEqual(result, expected,
                          "Expected %r and %r to combine to %s but got %r" %
                          (lhs, rhs, expected, result))
Beispiel #2
0
 def assert_combined_status(self, a, b, expected):
     # Should be symmetric so check the arguments both ways round.
     for lhs, rhs in [(a, b), (b, a)]:
         result = combine_statuses(lhs, rhs)
         self.assertEqual(result, expected,
                          "Expected %r and %r to combine to %s but got %r" %
                          (lhs, rhs, expected, result))