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