def test_exports_gpio_device_to_userspace_when_opened_and_unexports_when_closed(self):
    with pins.pin(0) as pin:
        assert os.path.exists('/sys/class/gpio/gpio17/value')
    assert (not os.path.exists('/sys/class/gpio/gpio17/value'))
def test_exports_gpio_device_to_userspace_when_opened_and_unexports_when_closed(self):
    with pins.pin(0) as pin:
        assert os.path.exists('/sys/class/gpio/gpio17/value')
    assert (not os.path.exists('/sys/class/gpio/gpio17/value'))