parameters: (self, producer, consumer, test_case)
return_statement: return outcome
docstring: Run one Flight test case.
docstring_summary: Run one Flight test case.
docstring_tokens: Run one Flight test case .
function: def _run_flight_test_case(self, producer, consumer, test_case):
          """
          Run one Flight test case.
          """
          outcome = Outcome()
  
          log('=' * 58)
          log('Testing file {0}'.format(test_case.name))
          log('=' * 58)
  
          if producer.name in test_case.skip:
              log('-- Skipping test because producer {0} does '
                  'not support'.format(producer.name))
              outcome.skipped = True
  
          elif consumer.name in test_case.skip:
              log('-- Skipping test because consumer {0} does '
                  'not support'.format(consumer.name))
              outcome.skipped = True
  
          elif SKIP_FLIGHT in test_case.skip:
              log('-- Skipping test')
              outcome.skipped = True
  
          else:
              try:
                  if isinstance(test_case, Scenario):
                      server = producer.flight_server(test_case.name)
                      client_args = {'scenario_name': test_case.name}
                  else:
                      server = producer.flight_server()
                      client_args = {'json_path': test_case.path}
  
                  with server as port:
                      # Have the client upload the file, then download and
                      # compare
                      consumer.flight_request(port, **client_args)
              except Exception:
                  traceback.print_exc(file=printer.stdout)
                  outcome.failure = Failure(test_case, producer, consumer,
                                            sys.exc_info())
  
          return outcome
function_tokens: def _run_flight_test_case ( self , producer , consumer , test_case ) : outcome = Outcome ( ) log ( '=' * 58 ) log ( 'Testing file {0}' . format ( test_case . name ) ) log ( '=' * 58 ) if producer . name in test_case . skip : log ( '-- Skipping test because producer {0} does ' 'not support' . format ( producer . name ) ) outcome . skipped = True elif consumer . name in test_case . skip : log ( '-- Skipping test because consumer {0} does ' 'not support' . format ( consumer . name ) ) outcome . skipped = True elif SKIP_FLIGHT in test_case . skip : log ( '-- Skipping test' ) outcome . skipped = True else : try : if isinstance ( test_case , Scenario ) : server = producer . flight_server ( test_case . name ) client_args = { 'scenario_name' : test_case . name } else : server = producer . flight_server ( ) client_args = { 'json_path' : test_case . path } with server as port : # Have the client upload the file, then download and # compare consumer . flight_request ( port , * * client_args ) except Exception : traceback . print_exc ( file = printer . stdout ) outcome . failure = Failure ( test_case , producer , consumer , sys . exc_info ( ) ) return outcome