Beispiel #1
0
 def setUp(self):
     """Create a test gallery with 2 photos."""
     super(GalleryTest, self).setUp()
     self.test_gallery = models.Gallery.objects.create(title='Fake Gallery', title_slug='fake-gallery')
     self.pl2 = helpers._create_new_photo(name='Landscape2', slug='landscape2')
     self.test_gallery.photos.add(self.pl)
     self.test_gallery.photos.add(self.pl2)
Beispiel #2
0
 def setUp(self):
     """Create a test gallery with 2 photos."""
     super(GalleryTest, self).setUp()
     self.test_gallery = models.Gallery.objects.create(title="Fake Gallery", title_slug="fake-gallery")
     self.pl2 = helpers._create_new_photo(name="Landscape2", slug="landscape2")
     self.test_gallery.photos.add(self.pl)
     self.test_gallery.photos.add(self.pl2)
 def setUp(self):
     super(RequestPhotoTest, self).setUp()
     self.photo = helpers._create_new_photo(name='Fake Photo', slug='fake-photo')
Beispiel #4
0
 def setUp(self):
     super(RequestPhotoTest, self).setUp()
     self.photo = helpers._create_new_photo(name='Fake Photo', slug='fake-photo')