[Update] 修改表结构

This commit is contained in:
ibuler
2019-06-24 22:16:39 +08:00
parent 327febaf59
commit 824ba433f6
7 changed files with 193 additions and 51 deletions

View File

@@ -1,3 +1,16 @@
from django.test import TestCase
# Create your tests here.
from .utils import random_string, get_signer
def test_signer_len():
signer = get_signer()
results = {}
for i in range(1, 4096):
s = random_string(i)
encs = signer.sign(s)
results[i] = (len(encs)/len(s))
results = sorted(results.items(), key=lambda x: x[1], reverse=True)
print(results)