93
110
class TestGenRevisionId(tests.TestCase):
94
111
"""Test generating revision ids"""
101
113
def assertGenRevisionId(self, regex, username, timestamp=None):
102
114
"""gen_revision_id should create a revision id matching the regex"""
103
115
revision_id = generate_ids.gen_revision_id(username, timestamp)
105
117
# It should be a utf8 revision_id, not a unicode one
106
118
self.assertIsInstance(revision_id, str)
107
119
# gen_revision_id should always return ascii revision ids.