コード例 #1
0
 def testGetUnitArgs_Down(self):
     unit_args = add_histograms_queue.GetUnitArgs('count_smallerIsBetter')
     self.assertEquals(anomaly.DOWN, unit_args['improvement_direction'])
コード例 #2
0
 def testGetUnitArgs_Unknown(self):
     unit_args = add_histograms_queue.GetUnitArgs('count')
     self.assertEquals(anomaly.UNKNOWN, unit_args['improvement_direction'])
コード例 #3
0
 def testGetUnitArgs_Up(self):
     unit_args = add_histograms_queue.GetUnitArgs('count_biggerIsBetter')
     self.assertEquals(anomaly.UP, unit_args['improvement_direction'])