class_docstr: Test ability to marshall download_button protos.
class_docstr_tok: ["Test","ability","to","marshall","download_button","protos","."]
docstr: Test that it can be called with type param.
docstr_tok: ["Test","that","it","can","be","called","with","type","param","."]
code: def test_type(self):
      """Test that it can be called with type param."""
      st.download_button("the label", data="Streamlit", type="primary")
  
      c = self.get_delta_from_queue().new_element.download_button
      self.assertEqual(c.type, "primary")
  
file_path: streamlit/lib/tests/streamlit/elements/download_button_test.py
imports: from parameterized import parameterized
  import streamlit
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 4 for calling the DownloadButtonTest obj's underlying member method code with example usage: obj.test_type() without return types