def test_main(self, peak, im_i): median_bounds_value = median_bounds(im_i, peak) assert isinstance(median_bounds_value, tuple) assert isinstance(median_bounds(im_i, peak, False), tuple) assert len(median_bounds_value) == 2 assert median_bounds_value == (1, 1) assert median_bounds_value[0] == 1 assert median_bounds_value[1] == 1
def test_shared_errors(self, im_i, peak, obj): with pytest.raises(TypeError): median_bounds(im_i, peak, obj)
def test_im_errors(self, peak, obj): with pytest.raises(TypeError): median_bounds(obj, peak)