import py

def test_raises():
    py.test.raises(ValueError, lambda : 123)

