def test_only_shipping_address_are_shown(self):
     not_shipping_country = factories.CountryFactory(
         iso_3166_1_a2='US', name="UNITED STATES",
         is_shipping_country=False)
     not_shipping_address = UserAddressFactory(
         user=self.user, country=not_shipping_country, line4='New York')
     self.add_product_to_basket()
     page = self.get(reverse('checkout:shipping-address'))
     page.mustcontain(
         self.user_address.line4, self.user_address.country.name,
         no=[not_shipping_address.country.name, not_shipping_address.line4])
 def setUp(self):
     country = self.create_shipping_country()
     super(TestUserAddressUpdateView, self).setUp()
     self.user_address = UserAddressFactory(user=self.user, country=country)
 def setUp(self):
     super(TestShippingAddressView, self).setUp()
     self.user_address = UserAddressFactory(
         user=self.user, country=self.create_shipping_country())