def test_shipping_method_without_address(request_cart_with_item, client):
 response = client.get(reverse('checkout:shipping-method'))
 assert (response.status_code == 302)
 assert (get_redirect_location(response) == reverse('checkout:shipping-address'))

def test_shipping_method_without_address ( request_cart_with_item , client ) : response = client . get ( reverse ( 'checkout:shipping-method' ) ) assert ( response . status_code == 302 ) assert ( get_redirect_location ( response ) == reverse ( 'checkout:shipping-address' ) )
user tries to get shipping method step without saved shipping address - if is redirected to shipping address step .