1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

improve tests

This commit is contained in:
lins05
2014-09-05 10:07:33 +08:00
parent 041752e214
commit 26c773371f
15 changed files with 841 additions and 939 deletions

View File

@@ -3,7 +3,9 @@ import random
from .common import BASE_URL
def randomword(length):
def randstring(length=0):
if length == 0:
length = random.randint(1, 30)
return ''.join(random.choice(string.lowercase) for i in range(length))
def urljoin(base, *args):