diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2016-05-01 17:03:53 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2016-05-01 17:03:53 (GMT) |
commit | 3803ad47bb443d9cad83fe968b1b82ad5bcb75f2 (patch) | |
tree | bfd94e70563850aebf96bc8767932fb74cf1e9e2 /Lib/test | |
parent | dd1bcdf6187ff18fb1536a6190926b0f03336186 (diff) | |
download | cpython-3803ad47bb443d9cad83fe968b1b82ad5bcb75f2.zip cpython-3803ad47bb443d9cad83fe968b1b82ad5bcb75f2.tar.gz cpython-3803ad47bb443d9cad83fe968b1b82ad5bcb75f2.tar.bz2 |
issue26893: use mro() to examine class heirarchy
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_enum.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index a59a049..4b14e7f 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -1568,6 +1568,19 @@ class TestUnique(unittest.TestCase): triple = 3 turkey = 3 + def test_unique_with_name(self): + @unique + class Silly(Enum): + one = 1 + two = 'dos' + name = 3 + @unique + class Sillier(IntEnum): + single = 1 + name = 2 + triple = 3 + value = 4 + expected_help_output_with_docs = """\ Help on class Color in module %s: |