class_docstr: This class tests the basic functionality of the Python bindings.
class_docstr_tok: ["This","class","tests","the","basic","functionality","of","the","Python","bindings","."]
docstr: Test that we pass wrong type and get back TypeError
docstr_tok: ["Test","that","we","pass","wrong","type","and","get","back","TypeError"]
code: def testThrownException(self):
      """
      Test that we pass wrong type and get back TypeError
      """
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in=10,
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=10.0,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in="bad",
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              flag2=10,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              matrix_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              matrix_in=1,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              matrix_and_info_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              copy_all_inputs=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              col_in=10,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              row_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              str_vector_in="bad",
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              urow_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              ucol_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              umatrix_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              verbose=10,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=[1.0],
              flag1=True,
              vector_in=10.0,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=False,
              col_req_in=[1.0],
              flag1=True,
          ),
      )
  
      self.assertRaises(
          TypeError,
          lambda: test_python_binding(
              string_in="hello",
              int_in=12,
              double_in=4.0,
              mat_req_in=[[1.0]],
              col_req_in=False,
              flag1=True,
          ),
      )
  
imports: import unittest
  import pandas
  import numpy
  import copy
  from mlpack.test_python_binding import test_python_binding
label_desc: Use image node_id 56 for calling the TestPythonBinding obj's underlying member method code with example usage: obj.testThrownException() without return types