X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a3770186a94117be56a8d9a8038a2d540bd2884c..refs/heads/micropython-pyi:/test/src/testing/adafruit_blinka.py diff --git a/test/src/testing/adafruit_blinka.py b/test/src/testing/adafruit_blinka.py index 5ad38e2..13f3873 100644 --- a/test/src/testing/adafruit_blinka.py +++ b/test/src/testing/adafruit_blinka.py @@ -1,10 +1,13 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT import unittest class TestEnum(unittest.TestCase): """ - Verifies the repl() and str() behaviour of an example Enum - Enums represent configuration values such as digitalio.Direction, digitalio.Pull etc. + Verifies the repl() and str() behaviour of an example Enum + Enums represent configuration values such as digitalio.Direction, digitalio.Pull etc. """ def setUp(self): @@ -24,7 +27,13 @@ class TestEnum(unittest.TestCase): def test_iteritems(self): """A subtype of Enum can list all attributes of its own type""" items = list(self.Cls.iteritems()) - self.assertEqual(items, [("one", self.Cls.one), ("two", self.Cls.two),]) + self.assertEqual( + items, + [ + ("one", self.Cls.one), + ("two", self.Cls.two), + ], + ) def test_repr(self): """A repr() call on an Enum gives its fully-qualified name"""