def test_im_errors(self, peak, obj): with pytest.raises(TypeError): peak_pt_bounds(obj, peak)
def test_peak_errors(self, im_i, obj): with pytest.raises(TypeError): peak_pt_bounds(im_i, obj)
def test_main(self, peak, im_i): bounds = peak_pt_bounds(im_i, peak) assert isinstance(bounds, tuple) assert len(bounds) == 2 assert bounds == (3, 3) assert isinstance(bounds[0], int)