def test_invalid_arguments(self):
    """Tests if get_converter throws an error on invalid arguments."""
    with self.assertRaises(KeyError):
      casper_converters.get_converter("unknown_converter", _RETRIEVAL_INDEX,
                                      "top", {}, _FORMATTER_KWARGS)
    with self.assertRaises(TypeError):
      casper_converters.get_converter("add_top", _RETRIEVAL_INDEX, "top",
                                      {"unknown_arg": 42}, _FORMATTER_KWARGS)
    with self.assertRaises(ValueError):
      casper_converters.get_converter("add_top", _RETRIEVAL_INDEX,
                                      "unknown_funcall_format", {"k": 3},
                                      _FORMATTER_KWARGS)
Tests if get_converter throws an error on invalid arguments.
language/casper/augment/casper_converters_test.py