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