110
112
class TestGenRevisionId(tests.TestCase):
111
113
"""Test generating revision ids"""
113
120
def assertGenRevisionId(self, regex, username, timestamp=None):
114
121
"""gen_revision_id should create a revision id matching the regex"""
115
122
revision_id = generate_ids.gen_revision_id(username, timestamp)
117
124
# It should be a utf8 revision_id, not a unicode one
118
125
self.assertIsInstance(revision_id, str)
119
126
# gen_revision_id should always return ascii revision ids.