diff options
| author | Barry Warsaw | 2015-12-29 17:56:10 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-12-29 17:56:10 -0500 |
| commit | 8e69b848270da6ba4852f8c6dfdeeed8124ab024 (patch) | |
| tree | ee1d95464be55662ef7ea3b6a8c08ea7218214fc /src/mailman/model/tests/test_uid.py | |
| parent | 1602cecded07961585838a31758147e76584e957 (diff) | |
| download | mailman-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.py | 6 |
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('>')) |
