def test_add_oracle_fail_converter(self):
    """Tests the add_oracle converter when there are no good index entries."""
    converter = casper_converters.get_converter("add_oracle", _RETRIEVAL_INDEX,
                                                "top", {
                                                    "n": 2,
                                                    "k": 2,
                                                    "p": 1.0,
                                                }, _FORMATTER_KWARGS)

    # The index only has Create_timer with duration.
    raw_ex = {
        "hashed_id": "qqq",
        "input_str": "create a timer",
        "output_str": "[IN:CREATE_TIMER ]",
        "exemplars": {
            "hashed_ids": ["aaa", "ddd", "eee", "ccc", "bbb"]
        },
    }
    results = list(converter.convert(raw_ex))
    self.assertEmpty(results)
Tests the add_oracle converter when there are no good index entries.
language/casper/augment/casper_converters_test.py