Beispiel #1
0
def test_compute_BMI():
    assert round(nk.compute_BMI(182, 70, 27, "m")['BMI_old'], 2) == 21.13
    assert round(nk.compute_BMI(182, 25, 27, "f")['BMI_old'], 2) == 7.55
 def test_compute_BMI(self):
     self.assertEqual(round(nk.compute_BMI(182, 70, 27, "m")['BMI_old'], 2),
                      21.13)
     self.assertEqual(round(nk.compute_BMI(182, 25, 27, "f")['BMI_old'], 2),
                      7.55)