<s> import json <EOL> def test_config ( worker ) : <EOL> """<STR_LIT>""" <EOL> worker . start ( ) <EOL> cfg = json . loads ( <EOL> worker . send_task ( "<STR_LIT>" , { } , block = True ) ) <EOL> assert "<STR_LIT>" in cfg <EOL> assert cfg . get ( "<STR_LIT>" ) is None <EOL> worker . stop ( ) <EOL> worker . start ( flags = "<STR_LIT>" ) <EOL> cfg = json . loads ( <EOL> worker . send_task ( "<STR_LIT>" , { } , block = True ) ) <EOL> assert cfg [ "<STR_LIT:name>" ] == "<STR_LIT>" <EOL> assert cfg . get ( "<STR_LIT>" ) == "<STR_LIT:1>" <EOL> worker . stop ( ) <EOL> worker . start ( flags = "<STR_LIT>" ) <EOL> cfg = json . loads ( <EOL> worker . send_task ( "<STR_LIT>" , { } , block = True ) ) <EOL> assert cfg [ "<STR_LIT:name>" ] == "<STR_LIT>" <EOL> assert cfg . get ( "<STR_LIT>" ) == "<STR_LIT:1>" <EOL> worker . stop ( ) </s>
