def test_unit_description(self): item = ProductionService(store=self.store) item.service = self.create_service() item.service.sellable.unit = self.create_sellable_unit(description=u'un') self.assertEqual(item.unit_description, u'un')
def test_get_description(self): item = ProductionService(store=self.store) item.service = self.create_service() item.service.sellable.description = u'service' self.assertEquals(item.get_description(), u'service')
def test_get_description(self): item = ProductionService(store=self.store) item.service = self.create_service() item.service.sellable.description = u'service' self.assertEqual(item.get_description(), u'service')
def test_unit_description(self): item = ProductionService(store=self.store) item.service = self.create_service() item.service.sellable.unit = self.create_sellable_unit( description=u'un') self.assertEqual(item.unit_description, u'un')