def test_switch_to_numpy(self): assert dtcwt.Transform2d is npbackend.Transform2d assert dtcwt.Pyramid is npbackend.Pyramid assert dtcwt.backend_name == 'numpy' dtcwt.push_backend('numpy') assert dtcwt.Transform2d is npbackend.Transform2d assert dtcwt.Pyramid is npbackend.Pyramid assert dtcwt.backend_name == 'numpy' dtcwt.pop_backend() assert dtcwt.Transform2d is npbackend.Transform2d assert dtcwt.Pyramid is npbackend.Pyramid assert dtcwt.backend_name == 'numpy'
def test_no_pop_default_backend(self): with raises(IndexError): dtcwt.pop_backend()
def test_no_pop_default_backend(self): dtcwt.pop_backend()