def test_vertical_horizontal_filter_invalid_period(self): period = 128 with self.assertRaises(Exception) as cm: vertical_horizontal_filter.vertical_horizontal_filter( self.data, period) expected = "Error: data_len < period" self.assertEqual(str(cm.exception), expected)
def test_vertical_horizontal_filter_period_10(self): period = 10 vhf = vertical_horizontal_filter.vertical_horizontal_filter(self.data, period) np.testing.assert_array_equal(vhf, self.vhf_period_10_expected)