def test_check_window_size(): for m in range(-1, 3): with pytest.raises(ValueError): core.check_window_size(m)
def test_check_max_window_size(): for m in range(4, 7): with pytest.raises(ValueError): core.check_window_size(m, max_size=3)