diff --git a/tests/test_dead_pixel_correction.py b/tests/test_dead_pixel_correction.py
index 3c82d331d667c8c848a1c11222cd1b5560f91e94..ba1ee0963ca35c4dcbe5381eb2e27394112cc744 100644
--- a/tests/test_dead_pixel_correction.py
+++ b/tests/test_dead_pixel_correction.py
@@ -140,7 +140,8 @@ class Test_interp_nodata_along_axis_2d(TestCase):
             interp_nodata_along_axis_2d(self.get_data2d(), axis=3)
         with pytest.raises(ValueError):
             interp_nodata_along_axis_2d(np.dstack([self.get_data2d(), self.get_data2d()]))
-
+        with pytest.raises(ValueError):
+            interp_nodata_along_axis_2d(self.get_data2d(), method='unsupported_method')
 
 class Test_interp_nodata_along_axis(TestCase):
     @staticmethod