def assert_case_equal(case, actual, desired):
 assert (actual == desired), ('\nTest %r failed.\nactual  = %s\ndesired = %s\n' % (case, actual, desired))

def assert_case_equal ( case , actual , desired ) : assert ( actual == desired ) , ( '\nTest %r failed.\nactual  = %s\ndesired = %s\n' % ( case , actual , desired ) )
assert actual == desired with formatted message .