def test_lightPin_WhenCalled_PinSetToHigh(self): mockGPIO = Mock() lp = LightProvider(mockGPIO) lp.lightPin(LightProvider.RED_PIN()) mockGPIO.output.assert_called_once_with(LightProvider.RED_PIN(), mockGPIO.HIGH)