263
263
self.assertStartsWith(gen_file_id(u'\xe5\xb5.txt'), 'txt-')
268
271
fid = gen_file_id('A'*50 + '.txt')
269
272
self.assertStartsWith(fid, 'a'*20 + '-')
271
275
# restricting length happens after the other actions, so
273
277
fid = gen_file_id('\xe5\xb5..aBcd\tefGhijKLMnop\tqrstuvwxyz')
274
278
self.assertStartsWith(fid, 'abcdefghijklmnopqrst-')
276
281
def test_next_id_suffix(self):
277
282
bzrlib.workingtree._gen_id_suffix = None