Exemple #1
0
 def test_DIO_set_low(self, mock_init, mock_set_reg):
     """test the member DIO.DIO_set_low(dioName)"""
     d = DIO()
     pin = 'DIO_01'
     d.DIO_set_low(pin)
     mock_set_reg.assert_called_with(pin, 0)
     mock_init.assert_called_with(SYSCON_BASE)