def test_inhibit(self, mock_output): exp_inhibit = 12 exp_pins = [4, 19, 1, 3] d = Demux(exp_inhibit, exp_pins) mock_output.reset_mock() d.inhibit() mock_output.assert_has_calls([call(exp_inhibit, GPIO.HIGH)], any_order=True)
def test_inhibit(self, mock_output): exp_inhibit = 12 exp_pins = [4, 19, 1, 3] d = Demux(exp_inhibit, exp_pins) mock_output.reset_mock() d.inhibit() mock_output.assert_has_calls([call(exp_inhibit, GPIO.HIGH)], any_order=True)