Esempio n. 1
0
    def test_over_peaking(self):
        bac = 1.337 + 0.1

        is_balmer_peaking, minutes, seconds = ballmer_peak(bac)

        self.assertFalse(is_balmer_peaking)
        self.assertEqual(minutes, 20)
        self.assertEqual(seconds, 0)
Esempio n. 2
0
    def test_close_to_minimum(self):
        bac = 1.337 - 0.049

        is_balmer_peaking, minutes, seconds = ballmer_peak(bac)

        self.assertTrue(is_balmer_peaking)
        self.assertEqual(minutes, 0)
        self.assertEqual(seconds, 24)
Esempio n. 3
0
    def test_under_peaking(self):
        bac = 1.337 - 0.1

        is_balmer_peaking, _, _ = ballmer_peak(bac)

        self.assertFalse(is_balmer_peaking)