def setUp(self): for i in range(6): u = User(open_id=str(i), student_id=str(i)) u.save() a = Activity(name=str(1), key='11', description='aaa', start_time=timezone.now(), end_time=timezone.now(), place='ss', book_end=timezone.now(), book_start=timezone.now(), total_tickets='123', status=Activity.STATUS_PUBLISHED, pic_url='sss', remain_tickets='1') a.save()
def createUser(openID, studentID): user = User(open_id=openID, student_id=studentID) user.save() return user