def test_avg(self): """ Batting average test :return: """ # Barry bonds(2004) avg = Stats.avg(135, 373) self.assertEqual(avg, 0.362)