예제 #1
0
 def test_im_errors(self, peak, obj):
     with pytest.raises(TypeError):
         peak_pt_bounds(obj, peak)
예제 #2
0
 def test_peak_errors(self, im_i, obj):
     with pytest.raises(TypeError):
         peak_pt_bounds(im_i, obj)
예제 #3
0
 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)