def import_no_clients_in_api_and_scenario_tests(physical_line, filename):
 if (('tempest/api' in filename) or ('tempest/scenario' in filename)):
  res = PYTHON_CLIENT_RE.match(physical_line)
  if res:
   return (physical_line.find(res.group(1)), 'T102: python clients import not allowed in tempest/api/* or tempest/scenario/* tests')

def import_no_clients_in_api_and_scenario_tests ( physical_line , filename ) : if ( ( 'tempest/api' in filename ) or ( 'tempest/scenario' in filename ) ) : res = PYTHON_CLIENT_RE . match ( physical_line ) if res : return ( physical_line . find ( res . group ( 1 ) ) , 'T102: python clients import not allowed in tempest/api/* or tempest/scenario/* tests' )
check for client imports from tempest/api & tempest/scenario tests t102: cannot import openstack python clients .