summaryrefslogtreecommitdiffstats
path: root/tests/utilities_tests/math_average_test.py
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-07-11 15:12:35 -0400
committermbeierl <mark.beierl@dell.com>2017-07-11 15:47:46 -0400
commit7602a54309adbe5c5346ee6befecc2e596976504 (patch)
tree60f15026780db30b0b8842ba1a1e2cc021e22625 /tests/utilities_tests/math_average_test.py
parentfc09b37e95c19f820ec60db19d98c0dc3d670829 (diff)
Change all paths
Changes the paths of all source code so that it exists under the dockerfile location for each container. This way we can use COPY instead of git clone, as well as use the existing JJB. Change-Id: I883b2957d89659c164fff0a1ebc4d677c534796d JIRA: STORPERF-188 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'tests/utilities_tests/math_average_test.py')
-rw-r--r--tests/utilities_tests/math_average_test.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/utilities_tests/math_average_test.py b/tests/utilities_tests/math_average_test.py
deleted file mode 100644
index 3095f56..0000000
--- a/tests/utilities_tests/math_average_test.py
+++ /dev/null
@@ -1,52 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 CENGN and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-import unittest
-from storperf.utilities import math as math
-
-
-class MathAverageTest(unittest.TestCase):
-
- def setUp(self):
- unittest.TestCase.setUp(self)
-
- def test_empty_series(self):
- expected = None
- data_series = []
- actual = math.average(data_series)
- self.assertEqual(expected, actual)
-
- def test_integer_series(self):
- expected = 19.75
- data_series = [5, 12, 7, 55]
- actual = math.average(data_series)
- self.assertEqual(expected, actual)
-
- def test_float_series(self):
- expected = 63.475899999999996
- data_series = [78.6, 45.187, 33.334, 96.7826]
- actual = math.average(data_series)
- self.assertEqual(expected, actual)
-
- def test_float_int_mix(self):
- expected = 472.104
- data_series = [10, 557.33, 862, 56.99, 874.2]
- actual = math.average(data_series)
- self.assertEqual(expected, actual)
-
- def test_negative_values(self):
- expected = -17.314
- data_series = [-15.654, 59.5, 16.25, -150, 3.334]
- actual = math.average(data_series)
- self.assertEqual(expected, actual)
-
- def test_single_value(self):
- expected = -66.6667
- data_series = [-66.6667]
- actual = math.average(data_series)
- self.assertEqual(expected, actual)