From f33742127339a39c1b7bd9bf26f31c2cd9fbb341 Mon Sep 17 00:00:00 2001 From: Cheng Li Date: Tue, 19 Jul 2016 17:25:22 +0800 Subject: [PATCH] Change assertTrue to assertEqual In test_ringbuilder.py, there is one assertTrue should be replaced with assertEqual. Change-Id: I9a0e4a7363a5e16cc9b6df045953dfbb4f9dbd07 Closes-bug: #1604320 --- test/unit/cli/test_ringbuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/cli/test_ringbuilder.py b/test/unit/cli/test_ringbuilder.py index b61907c967..5e86b6fea1 100644 --- a/test/unit/cli/test_ringbuilder.py +++ b/test/unit/cli/test_ringbuilder.py @@ -1783,7 +1783,7 @@ class TestCommands(unittest.TestCase, RunSwiftRingBuilderMixin): self.assertEqual(ring.min_part_seconds_left, 0) self.assertSystemExit(EXIT_WARNING, ringbuilder.main, argv) ring = RingBuilder.load(self.tmpfile) - self.assertTrue(ring.min_part_seconds_left, 3600) + self.assertEqual(ring.min_part_seconds_left, 3600) def test_rebalance_failure_does_not_reset_last_moves_epoch(self): ring = RingBuilder(8, 3, 1)