def test_deprecated_raises_on_nil(self): with pytest.raises(ValueError): deprecated(None)
def test_deprecated_raises_on_nil(self): with pytest.raises(ValueError): deprecated(None)
def test_deprecated_raises_on_nonfunction(self): with pytest.raises(ValueError): deprecated('high five!')
def test_deprecated_raises_on_nonfunction(self): with pytest.raises(ValueError): deprecated('high five!')