def test_reset(self, mock_output): exp_inhibit = 21 exp_pins = [4, 5, 6, 8] d = Demux(exp_inhibit, exp_pins) mock_output.reset_mock() d.reset() mock_output.assert_has_calls([ call(exp_pins[0], GPIO.LOW), call(exp_pins[1], GPIO.LOW), call(exp_pins[2], GPIO.LOW), call(exp_pins[3], GPIO.LOW) ], any_order=True)