def test_2002_try_add_billing_address_without_params_object(self): # User forget add object to params # set credential of cart self.params = self.add_cart_credential(self.params) billing_address = Address() billing_address.firstName = "Test" billing_address.lastName = "Männen" billing_address.email = "*****@*****.**" billing_address.country = "FI" # billingAddress is missing! with self.assertRaises(RuntimeError) as e: response = self.client.update_shipping_address(self.params)
def test_2003_try_add_billing_address_without_country(self): # Try add a billing address without country # set credential of cart self.params = self.add_cart_credential(self.params) billing_address = Address() billing_address.firstName = "Test" billing_address.lastName = "Männen" billing_address.email = "*****@*****.**" self.params['object'] = billing_address # Country not Valid (missing) with self.assertRaises(RuntimeError) as e: response = self.client.update_shipping_address(self.params)