Here are the examples of the python api mock.call.set_low taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: Adafruit_Nokia_LCD Source File: test_PCD8544.py
def test_begin_initializes_lcd(self):
gpio = Mock()
spi = Mock()
lcd = LCD.PCD8544(1, 2, gpio=gpio, spi=spi)
lcd.begin(40)
# Verify RST is set low then high.
gpio.assert_has_calls([call.set_low(2), call.set_high(2)])
# Verify SPI calls.
spi.assert_has_calls([call.write([0x21]),
call.write([0x14]),
call.write([0xA8]),
call.write([0x20]),
call.write([0x0c])])