def assert_no_validation_errors(validation):
 if hasattr(validation, 'task_error'):
  error = validation.task_error
 else:
  error = validation['error']
 if error:
  print ('-' * 70)
  print error
  print ('-' * 70)
  raise AssertionError(('Unexpected task error: %s' % error.rstrip().split('\n')[(-1)]))

def assert_no_validation_errors ( validation ) : if hasattr ( validation , 'task_error' ) : error = validation . task_error else : error = validation [ 'error' ] if error : print ( '-' * 70 ) print error print ( '-' * 70 ) raise AssertionError ( ( 'Unexpected task error: %s' % error . rstrip ( ) . split ( '\n' ) [ ( - 1 ) ] ) )
assert that the validation does not contain a traceback .