def has_results(errors=None, failures=None, skipped=None, expected_failures=None, unexpected_successes=None, tests_run=None):
 if (errors is None):
  errors = Equals([])
 if (failures is None):
  failures = Equals([])
 if (skipped is None):
  skipped = Equals([])
 if (expected_failures is None):
  expected_failures = Equals([])
 if (unexpected_successes is None):
  unexpected_successes = Equals([])
 if (tests_run is None):
  tests_run = Equals(0)
 return MatchesStructure(errors=errors, failures=failures, skipped=skipped, expectedFailures=expected_failures, unexpectedSuccesses=unexpected_successes, testsRun=tests_run)

def has_results ( errors = None , failures = None , skipped = None , expected_failures = None , unexpected_successes = None , tests_run = None ) : if ( errors is None ) : errors = Equals ( [ ] ) if ( failures is None ) : failures = Equals ( [ ] ) if ( skipped is None ) : skipped = Equals ( [ ] ) if ( expected_failures is None ) : expected_failures = Equals ( [ ] ) if ( unexpected_successes is None ) : unexpected_successes = Equals ( [ ] ) if ( tests_run is None ) : tests_run = Equals ( 0 ) return MatchesStructure ( errors = errors , failures = failures , skipped = skipped , expectedFailures = expected_failures , unexpectedSuccesses = unexpected_successes , testsRun = tests_run )
return a matcher on test results .