equal
deleted
inserted
replaced
1 # -*- coding: utf-8 -*- |
1 # -*- coding: utf-8 -*- |
2 from django.test import TestCase |
2 from django.test import TestCase |
3 from BeautifulSoup import BeautifulSoup |
3 from BeautifulSoup import BeautifulSoup |
4 from cm.models import * |
4 from cm.models import * |
|
5 from django.core.cache import cache |
5 |
6 |
6 # python manage.py test |
7 # python manage.py test |
7 # |
8 # |
8 # python manage.py test cm.CommentPositioningTest |
9 # python manage.py test cm.CommentPositioningTest |
9 |
10 |
18 start_offset=start_offset, |
19 start_offset=start_offset, |
19 end_offset=end_offset, |
20 end_offset=end_offset, |
20 reply_to=reply_to, |
21 reply_to=reply_to, |
21 state=state, |
22 state=state, |
22 user=user) |
23 user=user) |
|
24 cache.clear() |
23 return co |
25 return co |
24 |
26 |
25 |
27 |
26 class CommentPositioningTest(TestCase): |
28 class CommentPositioningTest(TestCase): |
27 |
29 |