def test_assertion(name, result, expected):
 assert (result == expected), ('Expected %s, got %s for %s' % (expected, result, name))

def test_assertion ( name , result , expected ) : assert ( result == expected ) , ( 'Expected %s, got %s for %s' % ( expected , result , name ) )
helper function to test an assertion and print out a reasonable error .