diff options
author | mbeierl <mark.beierl@dell.com> | 2018-08-16 13:15:47 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2018-08-16 13:15:47 -0400 |
commit | 562e802575abc79598ed2ef58a837a146be644c4 (patch) | |
tree | 22014009d01771d4a2ecd6d8647936a621db1274 /docker/storperf-master/tests | |
parent | 5930150915999fd410d7a2da38723065bcf7c91f (diff) |
Fixing series data.opnfv-7.0.stable.RC3
Changes the min and max series to also contain the
index to make plotting easier.
Change-Id: Ifbb43658338d6389705e7f146fa1ca6e13c202ce
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/storperf-master/tests')
-rw-r--r-- | docker/storperf-master/tests/utilities_tests/math_range_test.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/docker/storperf-master/tests/utilities_tests/math_range_test.py b/docker/storperf-master/tests/utilities_tests/math_range_test.py index 9208fb7..bbbbcf9 100644 --- a/docker/storperf-master/tests/utilities_tests/math_range_test.py +++ b/docker/storperf-master/tests/utilities_tests/math_range_test.py @@ -120,23 +120,13 @@ class MathRangeTest(unittest.TestCase): self.assertEqual(expected, actual) def test_min_series(self): - expected = [427.7333333333333, - 427.7333333333333, - 427.7333333333333, - 427.7333333333333, - 427.7333333333333, - 427.7333333333333] - data_series = [5, 351, 847, 2, 1985, 18] + expected = [[1, 5.6], [2, 5.6], [3, 5.6], [4, 5.6]] + data_series = [[1, 6], [2, 5], [3, 7], [4, 10]] actual = Range.min_series(data_series) self.assertEqual(expected, actual) def test_max_series(self): - expected = [641.5999999999999, - 641.5999999999999, - 641.5999999999999, - 641.5999999999999, - 641.5999999999999, - 641.5999999999999] - data_series = [5, 351, 847, 2, 1985, 18] + expected = [[1, 8.4], [2, 8.4], [3, 8.4], [4, 8.4]] + data_series = [[1, 6], [2, 5], [3, 7], [4, 10]] actual = Range.max_series(data_series) self.assertEqual(expected, actual) |