src/cm/tests/test_history.py
author gibus
Tue, 19 Oct 2010 14:30:19 +0200
changeset 323 addba77f2f90
parent 278 3d25afbd78ff
permissions -rw-r--r--
email_re has moved from django.form.fields to django.core.validators (Django 1.2 alpha 1)

from django.test import TestCase
from django.test.client import Client
from django.core import management

from cm.models import *

class HistoryTest(TestCase):
    fixtures = ['test_comments',]
    
    def test_revert(self):
        text = Text.objects.all()[0]
        text_version = text.last_text_version
        text.revert_to_version(text_version.key)