def test_main(self, peak, im_i):
     half_area_value = half_area(list(range(100)), 20)
     assert isinstance(half_area_value, tuple)
     assert len(half_area_value) == 3
     assert half_area_value[0] == 1
     assert half_area_value[1] == 1
     assert half_area_value[2] is True
 def test_tol_errors(self, obj):
     with pytest.raises(TypeError):
         half_area(list(range(100)), tol=obj)
 def test_max_bound_errors(self, obj):
     with pytest.raises(TypeError):
         half_area(list(range(100)), max_bound=obj)
 def test_ia_errors(self, obj):
     with pytest.raises(TypeError):
         half_area(obj)