summaryrefslogtreecommitdiff
path: root/src/mailman/model/tests/test_uid.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-12-29 17:56:10 -0500
committerBarry Warsaw2015-12-29 17:56:10 -0500
commit8e69b848270da6ba4852f8c6dfdeeed8124ab024 (patch)
treeee1d95464be55662ef7ea3b6a8c08ea7218214fc /src/mailman/model/tests/test_uid.py
parent1602cecded07961585838a31758147e76584e957 (diff)
downloadmailman-8e69b848270da6ba4852f8c6dfdeeed8124ab024.tar.gz
mailman-8e69b848270da6ba4852f8c6dfdeeed8124ab024.tar.zst
mailman-8e69b848270da6ba4852f8c6dfdeeed8124ab024.zip
Diffstat (limited to 'src/mailman/model/tests/test_uid.py')
-rw-r--r--src/mailman/model/tests/test_uid.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/model/tests/test_uid.py b/src/mailman/model/tests/test_uid.py
index 8f3b4af70..67fdab71e 100644
--- a/src/mailman/model/tests/test_uid.py
+++ b/src/mailman/model/tests/test_uid.py
@@ -85,3 +85,9 @@ class TestUID(unittest.TestCase):
# And all the users still exist.
non_orphans = set(user.user_id for user in manager.users)
self.assertEqual(uids, non_orphans)
+
+ def test_repr(self):
+ uid = UID(uuid.UUID(int=1))
+ self.assertTrue(repr(uid).startswith(
+ '<UID 00000000-0000-0000-0000-000000000001 at '))
+ self.assertTrue(repr(uid).endswith('>'))