You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

promotion_tests.py 297B

12345678910
  1. from django.test import TestCase
  2. from oscar.apps.promotions import models
  3. class PromotionTest(TestCase):
  4. def test_default_template_name(self):
  5. promotion = models.Image.objects.create(name="dummy banner")
  6. self.assertEqual('promotions/image.html', promotion.template_name())