def replace_real_credentials(cassette_dir, old_token, new_token, old_id, new_id):
cassettes = glob.glob(os.path.join(cassette_dir, '<STR_LIT>'))<EOL>for cassette_path in cassettes:<EOL><INDENT>cleaner = Cleaner(cassette_path, old_token, new_token, old_id, new_id)<EOL>cleaned_data, rewrite_required = cleaner.clean()<EOL>if rewrite_required:<EOL><INDENT>cleaner.write(cleaned_data)<EOL><DEDENT><DEDENT>
HasOffers response body contains NetworkId & NetworkToken and they should be replaced with test values.