def setUp(self): gallery1 = MovieGallery(name='Test 1', slug='test1', sort_order=1) gallery1.save() image1 = Movie(name='Movie Test 1', slug='movietest1', gallery=gallery1, sort_order=1, height=10, width=10) image1.save() image2 = Movie(name='Movie Test 2', slug='movietest2', gallery=gallery1, sort_order=2, height=10, width=10) image2.save() not_yet = datetime.now() + timedelta(minutes=1) movie3 = Movie(name='Movie Test 3', slug='movietest3', gallery=gallery1, sort_order=3, height=1, width=1, release_date=not_yet) movie3.save()
def setUp(self): gallery1 = MovieGallery(name='Test 1', slug='test1', sort_order=1) gallery1.save() movie1 = Movie(name='Movie Test 1', slug='movietest1', gallery=gallery1, sort_order=1, height=10, width=1) movie1.save()
def setUp(self): gallery1 = MovieGallery(name='Test 1', slug='test1', sort_order=1) gallery1.save() gallery2 = MovieGallery(name='Test 2', slug='test2', sort_order=2) gallery2.save()