def test_doesnt_fail_on_curly():
 ok = False
 try:
  assert False, '}'
 except AssertionError:
  ok = True
 Assert(ok)

def test_doesnt_fail_on_curly ( ) : ok = False try : assert False , '}' except AssertionError : ok = True Assert ( ok )
ensures that asserting a string with a curly brace doesnt choke up the string formatter .