Exemple #1
0
 def setUp(self):
     super(ProductMediaReorderViewTests, self).setUp()
     self.product = ProductFactory.create()
     self.media = (
         MediumFactory.create(instance=self.product, order=1),
         MediumFactory.create(instance=self.product, order=2),
         MediumFactory.create(instance=self.product, order=3),
     )
Exemple #2
0
 def setUp(self):
     super(ProductMediumDeleteViewTests, self).setUp()
     self.product = ProductFactory.create()
     self.medium = MediumFactory.create(instance=self.product, )
Exemple #3
0
 def setUp(self):
     super(ProductMediumUploadViewTests, self).setUp()
     self.product = ProductFactory.create()
Exemple #4
0
 def setUp(self):
     super(ProductDetailViewTests, self).setUp()
     self.product = ProductFactory.create()
     self.medium = MediumFactory.create(instance=self.product, order=1)