<s> import requests <EOL> import time <EOL> def test_resolve_service_with_path ( wc_host ) : <EOL> """<STR_LIT>""" <EOL> load_watson_with_config ( wc_host , "<STR_LIT>" ) <EOL> time . sleep ( <NUM_LIT:5> ) <EOL> assert requests . get ( "<STR_LIT>" , params = dict ( name = "<STR_LIT>" ) ) . text == "<STR_LIT>" <EOL> def test_resolve_service_without_path ( wc_host ) : <EOL> """<STR_LIT>""" <EOL> load_watson_with_config ( wc_host , "<STR_LIT>" ) <EOL> time . sleep ( <NUM_LIT:5> ) <EOL> assert requests . get ( "<STR_LIT>" ) . text == "<STR_LIT>" <EOL> def load_watson_with_config ( wc_host , config_name ) : <EOL> resp = requests . post ( "<STR_LIT>" % wc_host , params = dict ( config_name = config_name ) ) </s>
