def test_remove_above_value_float(self):
     seriesList = self._generate_series_list()
     value = 0.1
     results = functions.removeAboveValue({}, seriesList, value)
     for i, result in enumerate(results):
         self.assertListEqual(return_greater(result, value), [])
         expected_name = "removeAboveValue(collectd.test-db{0}.load.value, 0.1)".format(i + 1)
         self.assertEqual(expected_name, result.name)
 def test_remove_above_value_float(self):
     seriesList = self._generate_series_list()
     value = 0.1
     results = functions.removeAboveValue({}, seriesList, value)
     for i, result in enumerate(results):
         self.assertListEqual(return_greater(result, value), [])
         expected_name = "removeAboveValue(collectd.test-db{0}.load.value, 0.1)".format(
             i + 1)
         self.assertEqual(expected_name, result.name)
Beispiel #3
0
 def test_remove_above_value(self):
     seriesList = self._generate_series_list()
     value = 5
     results = functions.removeAboveValue({}, seriesList, value)
     for result in results:
         self.assertListEqual(return_greater(result, value), [])
Beispiel #4
0
 def test_remove_above_value(self):
     seriesList = self._generate_series_list()
     value = 5
     results = functions.removeAboveValue({}, seriesList, value)
     for result in results:
         self.assertListEqual(return_greater(result, value), [])