Ticket #11487: clob_test.py

File clob_test.py, 491 bytes (added by Goldan, 14 years ago)

Test that fails with CLOB

Line 
1import os
2import datetime
3import random
4from django.contrib.sessions.models import Session
5
6data = "a"
7for i in range(4000):
8 data += "a"
9
10key = int(''.join(map(str, [random.randint(1,6) for i in range(10)])))
11Session.objects.create(session_key=key, session_data=data[:4000], expire_date=datetime.datetime.now())
12key = int(''.join(map(str, [random.randint(1,6) for i in range(10)])))
13Session.objects.create(session_key=key, session_data=data[:4001], expire_date=datetime.datetime.now())
14
Back to Top