def test_smooth_default_hanning(self): "estspec: smooth defaults to hanning on unrecognized window" with capture(smooth, x=self.x_20, window="foobar") as output: self.assertRegexpMatches(output, "Defaulting")
def test_smooth_window_len_must_be_odd(self): "estspec: smooth changes even window_len to odd" with capture(smooth, x=self.x_20, window_len=4) as output: self.assertRegexpMatches(output, "reset")
def test_smooth_default_hanning(self): "estspec: smooth defaults to hanning on unrecognized window" with capture(smooth, x=self.x_20, window="foobar") as output: reg = re.compile("Defaulting") assert_(reg.search(output))
def test_smooth_window_len_must_be_odd(self): "estspec: smooth changes even window_len to odd" with capture(smooth, x=self.x_20, window_len=4) as output: reg = re.compile("reset") assert_(reg.search(output))