def test_set_high_and_set_low(self): gpio = MockGPIO() gpio.set_high(1) gpio.set_low(1) self.assertDictEqual(gpio.pin_written, {1: [1, 0]})