| author | raph |
| Mon, 23 Nov 2009 15:14:29 +0100 | |
| changeset 0 | 40c8f766c9b8 |
| child 145 | fb5b1e6ad179 |
| permissions | -rw-r--r-- |
| 0 | 1 |
from django.test import TestCase |
2 |
from django.test.client import Client |
|
3 |
from django.core import management |
|
4 |
||
5 |
from cm.models import * |
|
6 |
||
7 |
class HistoryTest(TestCase): |
|
8 |
fixtures = ['test_comments',] |
|
9 |
||
10 |
def test_revert(self): |
|
11 |
text = Text.objects.all()[0] |
|
12 |
#for i in range(1,text.get_versions_number()+1): |
|
13 |
text.revert_to_version(1) |
|
14 |
#self.assertEqual(Comment.objects.count(), 16) |
|
15 |