def test_absorption_filter(self): b = uwa.absorption_filter(200000) w, h = sp.freqz(b, 1, 4) h = 20*np.log10(np.abs(h)) self.assertEqual(list(np.round(h)), [0.0, -2.0, -8.0, -17.0])