示例#1
0
 def test_get_bmi_range_info_under_lang(self):
     self.assertEqual(Bmi.get_bmi_range_info(17, "es"), "Bajo peso")
示例#2
0
 def test_get_bmi_range_info_under(self):
     self.assertEqual(Bmi.get_bmi_range_info(17), "Underweight")
示例#3
0
 def test_get_bmi_range_info_obese3(self):
     self.assertEqual(Bmi.get_bmi_range_info(46), "Obese, Class III")
示例#4
0
 def test_get_bmi_range_info_obese1(self):
     self.assertEqual(Bmi.get_bmi_range_info(30.1), "Obese, Class I")
示例#5
0
 def test_get_bmi_range_info_over(self):
     self.assertEqual(Bmi.get_bmi_range_info(25.3), "Overweight")
示例#6
0
 def test_get_bmi_range_info_healthy(self):
     self.assertEqual(Bmi.get_bmi_range_info(19), "Healthy")
示例#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])