| author | ymh <ymh.work@gmail.com> |
| Tue, 04 Mar 2014 13:28:35 +0100 | |
| changeset 590 | e103299bccc0 |
| parent 278 | 3d25afbd78ff |
| 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] |
|
| 278 | 12 |
text_version = text.last_text_version |
| 145 | 13 |
text.revert_to_version(text_version.key) |
| 0 | 14 |