def test_i18n_message_to_thrift_source_library(self): self.assertEqual( types.arrow_i18n_message_to_thrift( I18nMessage( "modules.x.y", {"a": "s", "b": 12345678, "c": 0.123}, "cjwmodule" ) ), ttypes.I18nMessage( "modules.x.y", { "a": ttypes.I18nArgument(string_value="s"), "b": ttypes.I18nArgument(i32_value=12345678), "c": ttypes.I18nArgument(double_value=0.123), }, "cjwmodule", ), )
def test_i18n_message_to_thrift_source_none(self): self.assertEqual( types.arrow_i18n_message_to_thrift( types.I18nMessage("modules.x.y")), ttypes.I18nMessage("modules.x.y", {}, None), )