def test_assert_with_explicit_message():
try:
-> assert f() == 3, "hello"
except AssertionError, e:
assert e.msg == 'hello'