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.

tests.py 449B

12345678910111213141516
  1. import unittest
  2. from django.test import TestCase
  3. from oscar.basket.models import Basket
  4. from oscar.order.models import *
  5. class ShippingAddressTest(unittest.TestCase):
  6. def setUp(self):
  7. pass
  8. def test_titleless_salutation_is_stripped(self):
  9. a = ShippingAddress.objects.create(last_name='Barrington', line1="75 Smith Road", postcode="N4 8TY")
  10. self.assertEquals("Barrington", a.get_salutation())