src/cm/tests/test_history.py
changeset 0 40c8f766c9b8
child 145 fb5b1e6ad179
equal deleted inserted replaced
-1:000000000000 0:40c8f766c9b8
       
     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