Exemplo n.º 1
0
 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")
Exemplo n.º 2
0
 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")
Exemplo n.º 3
0
 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")
Exemplo n.º 4
0
 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")
Exemplo n.º 5
0
 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))
Exemplo n.º 6
0
 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))