def configure_cache(client, test_name):
 client.http_client.cache_test_name = test_name
 cache_name = client.http_client.get_cache_file_name()
 if (options.get_value('clearcache') == 'true'):
  client.http_client.delete_session(cache_name)
 client.http_client.use_cached_session(cache_name)

def configure_cache ( client , test_name ) : client . http_client . cache_test_name = test_name cache_name = client . http_client . get_cache_file_name ( ) if ( options . get_value ( 'clearcache' ) == 'true' ) : client . http_client . delete_session ( cache_name ) client . http_client . use_cached_session ( cache_name )
loads or begins a cached session to record http traffic .