From e69ab121e814b256406f6b0b8918d5098ea2783f Mon Sep 17 00:00:00 2001 From: Michael Whittaker Date: Thu, 4 Feb 2021 11:41:55 -0800 Subject: [PATCH] Added new test for cap. --- tests/test_strategy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_strategy.py b/tests/test_strategy.py index bdcc2fa..5d22ab2 100644 --- a/tests/test_strategy.py +++ b/tests/test_strategy.py @@ -109,7 +109,8 @@ class TestStrategy(unittest.TestCase): } load = (0.7 * max(node_loads_08.values()) + 0.3 * max(node_loads_05.values())) - cap = 1 / load + cap = (0.7 * 1 / max(node_loads_08.values()) + + 0.3 * 1/ max(node_loads_05.values())) self.assertAlmostEqual(sigma.load(read_fraction=fr), load) self.assertAlmostEqual(sigma.capacity(read_fraction=fr), cap) node_throughputs = {