Esempio n. 1
0
 def test_averagerelativedeviation_nodata_averagethrows(self):
     resultData = ComparisonData("TEST")
     resultData.setAverageAbsoluteDeviation(22.33)
     with self.assertRaises(RuntimeError):
         resultData.getAverageRelativeDeviation()
Esempio n. 2
0
 def test_comparisondata_addAverageRelativeValue_averagevalueSet(self):
     resultData = ComparisonData("TEST")
     resultData.setAverageRelativeDeviation(0.00546)
     self.assertEqual(0.00546, resultData.getAverageRelativeDeviation())