MockPin improvements

Change MockPin (and MockPWMPin) to make them behave more like 'real' pins - fixes #206
Add new MockPin tests, and rework some of the existing ones
Incorporate #216
This commit is contained in:
Andrew Scheller
2016-02-20 19:18:41 +00:00
parent 80dfee5c3f
commit c0d70f35f6
6 changed files with 150 additions and 34 deletions

View File

@@ -13,6 +13,9 @@ from gpiozero.pins.mock import MockPin
from gpiozero import *
def teardown_function(function):
MockPin.clear_pins()
# TODO add more devices tests!
def test_device_no_pin():