예제 #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")
예제 #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")
예제 #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")
예제 #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")
예제 #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))
예제 #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))