def test_evaluate_numeric_thresholds_crit(self):
     # Test crit
     check_docker.evaluate_numeric_thresholds(container='container',
                                              value=3,
                                              warn=2,
                                              crit=3,
                                              name='metric',
                                              short_name='met',
                                              min=0,
                                              max=10,
                                              units='b'
                                              )
     self.assertEqual(check_docker.rc, check_docker.CRITICAL_RC, "Incorrect return code")
     self.assertListEqual(check_docker.messages, ['CRITICAL: container metric is 3b'])
     self.assertListEqual(check_docker.performance_data, ['container_met=3b;2;3;0;10'])
 def test_evaluate_numeric_thresholds_crit(self):
     # Test crit
     check_docker.evaluate_numeric_thresholds(container='container',
                                              value=3,
                                              warn=2,
                                              crit=3,
                                              name='metric',
                                              short_name='met',
                                              min=0,
                                              max=10,
                                              units='b'
                                              )
     self.assertEqual(check_docker.rc, check_docker.CRITICAL_RC, "Incorrect return code")
     self.assertListEqual(check_docker.messages, ['CRITICAL: container metric is 3b'])
     self.assertListEqual(check_docker.performance_data, ['container_met=3b;2;3;0;10'])