Exemplo n.º 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),
     )
Exemplo n.º 2
0
 def setUp(self):
     super(ProductMediumDeleteViewTests, self).setUp()
     self.product = ProductFactory.create()
     self.medium = MediumFactory.create(instance=self.product, )
Exemplo n.º 3
0
 def setUp(self):
     super(ProductMediumUploadViewTests, self).setUp()
     self.product = ProductFactory.create()
Exemplo n.º 4
0
 def setUp(self):
     super(ProductDetailViewTests, self).setUp()
     self.product = ProductFactory.create()
     self.medium = MediumFactory.create(instance=self.product, order=1)