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