def test_DIO_set_output(self, mock_init, mock_set_reg): """test the member DIO.DIO_set_output(dioName)""" # candidate for setup method d = DIO() # parameter definition for test pin = 'DIO_01' d.DIO_set_output(pin) mock_set_reg.assert_called_with( pin, DATACORE_BIT_VALUE | DATACORE_BIT_DATA_DIR) mock_init.asser_called_with(SYSCON_BASE)