def test_assert():
try:
-> assert f() == 3
except AssertionError, e:
s = str(e)
assert s.startswith('assert 2 == 3\n')