class_docstr: Test ability to marshall text_input protos.
class_docstr_tok: ["Test","ability","to","marshall","text_input","protos","."]
docstr: If 'autocomplete' is unspecified, it defaults to the empty string
  for default inputs, and "new-password" for password inputs.
docstr_tok: ["If","'autocomplete","'","is","unspecified",",","it","defaults","to","the","empty","string","for","default","inputs",",","and","``","new-password","''","for","password","inputs","."]
code: def test_autocomplete_defaults(self):
      """If 'autocomplete' is unspecified, it defaults to the empty string
      for default inputs, and "new-password" for password inputs.
      """
      st.text_input("foo")
      proto = self.get_delta_from_queue().new_element.text_input
      self.assertEqual("", proto.autocomplete)
  
      st.text_input("password", type="password")
      proto = self.get_delta_from_queue().new_element.text_input
      self.assertEqual("new-password", proto.autocomplete)
  
imports: import re
  from unittest.mock import MagicMock, patch
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.proto.TextInput_pb2 import TextInput
  from streamlit.testing.v1.app_test import AppTest
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 10 for calling the TextInputTest obj's underlying member method code with example usage: obj.test_autocomplete_defaults() without return types