add tag ramka
[redakcja.git] / apps / catalogue / tests / gallery.py
index e1f636d..4b8ea3f 100644 (file)
@@ -19,9 +19,7 @@ class GalleryAppendTests(TestCase):
         self.user = User.objects.create(username='tester')
         self.book1 = Book.create(self.user, 'book 1', slug='book1')
         self.book1.chunk_set.create(number=2, title='Second chunk',
         self.user = User.objects.create(username='tester')
         self.book1 = Book.create(self.user, 'book 1', slug='book1')
         self.book1.chunk_set.create(number=2, title='Second chunk',
-                slug='book 1 / 2')
-        c=self.book1[0]
-        c.gallery_start=1
+                slug='book1-2')
         c=self.book1[1]
         c.gallery_start=3
         
         c=self.book1[1]
         c.gallery_start=3
         
@@ -41,11 +39,8 @@ class GalleryAppendTests(TestCase):
     def test_both_indexed(self):
         self.book2 = Book.create(self.user, 'book 2', slug='book2')
         self.book2.chunk_set.create(number=2, title='Second chunk of second book',
     def test_both_indexed(self):
         self.book2 = Book.create(self.user, 'book 2', slug='book2')
         self.book2.chunk_set.create(number=2, title='Second chunk of second book',
-                slug='book 2 / 2')
+                slug='book2-2')
 
 
-        c = self.book2[0]
-        c.gallery_start = 1
-        c.save()
         c = self.book2[1]
         c.gallery_start = 3
         c.save()
         c = self.book2[1]
         c.gallery_start = 3
         c.save()