X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/e86b7edcdb912e9a6b304ffd391c07b18bde6380..38566e3a72507341517804c374e71e3bd4c82934:/test/src/testing/implementation/micropython/digitalio.py diff --git a/test/src/testing/implementation/micropython/digitalio.py b/test/src/testing/implementation/micropython/digitalio.py deleted file mode 100644 index 05f7e42..0000000 --- a/test/src/testing/implementation/micropython/digitalio.py +++ /dev/null @@ -1,21 +0,0 @@ -""" - Tests which require an embedded platform (with actual hardware bindings) - but which are not architecture-specific. -""" -import unittest -import digitalio -from testing.board import default_pin - -class TestDigitalInOut(unittest.TestCase): - - - def test_context_manager(self): - """Deinitialisation is triggered by __exit__() and should dispose machine.pin reference""" - dio = digitalio.DigitalInOut(default_pin) - self.assertIsNotNone(dio._pin) - with dio: - pass - self.assertIsNone(dio._pin) - -def main(): - unittest.main()