Exemple #1
0
 def test_get_bmi_range_info_under_lang(self):
     self.assertEqual(Bmi.get_bmi_range_info(17, "es"), "Bajo peso")
Exemple #2
0
 def test_get_bmi_range_info_under(self):
     self.assertEqual(Bmi.get_bmi_range_info(17), "Underweight")
Exemple #3
0
 def test_get_bmi_range_info_obese3(self):
     self.assertEqual(Bmi.get_bmi_range_info(46), "Obese, Class III")
Exemple #4
0
 def test_get_bmi_range_info_obese1(self):
     self.assertEqual(Bmi.get_bmi_range_info(30.1), "Obese, Class I")
Exemple #5
0
 def test_get_bmi_range_info_over(self):
     self.assertEqual(Bmi.get_bmi_range_info(25.3), "Overweight")
Exemple #6
0
 def test_get_bmi_range_info_healthy(self):
     self.assertEqual(Bmi.get_bmi_range_info(19), "Healthy")
Exemple #7
0
def execute_get_bmi_range_info(args):
    if args.lang:
        return Bmi.get_bmi_range_info(args.bmi[0], args.lang)
    else:
        return Bmi.get_bmi_range_info(args.bmi[0])