def scenario_tests_need_service_tags(physical_line, filename, previous_logical):
 if (('tempest/scenario/' in filename) and ('/test_' in filename)):
  if TEST_DEFINITION.match(physical_line):
   if (not SCENARIO_DECORATOR.match(previous_logical)):
    return (physical_line.find('def'), 'T104: Scenario tests require a service decorator')

def scenario_tests_need_service_tags ( physical_line , filename , previous_logical ) : if ( ( 'tempest/scenario/' in filename ) and ( '/test_' in filename ) ) : if TEST_DEFINITION . match ( physical_line ) : if ( not SCENARIO_DECORATOR . match ( previous_logical ) ) : return ( physical_line . find ( 'def' ) , 'T104: Scenario tests require a service decorator' )
check that scenario tests have service tags t104: scenario tests require a services decorator .