src/cm/tests/test_history.py
changeset 0 40c8f766c9b8
child 145 fb5b1e6ad179
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/tests/test_history.py	Mon Nov 23 15:14:29 2009 +0100
@@ -0,0 +1,15 @@
+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]
+        #for i in range(1,text.get_versions_number()+1):
+        text.revert_to_version(1)
+        #self.assertEqual(Comment.objects.count(), 16)
+