def _if_match_passes(target_etag, etags):
 if (not target_etag):
  return False
 elif (etags == ['*']):
  return True
 elif target_etag.startswith('W/'):
  return False
 else:
  return (target_etag in etags)

def _if_match_passes ( target_etag , etags ) : if ( not target_etag ) : return False elif ( etags == [ '*' ] ) : return True elif target_etag . startswith ( 'W/' ) : return False else : return ( target_etag in etags )
test the if-match comparison as defined in section 3 .