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