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