示例#1
0
 def test_deprecated_raises_on_nil(self):
   with pytest.raises(ValueError):
     deprecated(None)
示例#2
0
 def test_deprecated_raises_on_nil(self):
     with pytest.raises(ValueError):
         deprecated(None)
示例#3
0
 def test_deprecated_raises_on_nonfunction(self):
   with pytest.raises(ValueError):
     deprecated('high five!')
示例#4
0
 def test_deprecated_raises_on_nonfunction(self):
     with pytest.raises(ValueError):
         deprecated('high five!')