@@ -3167,9 +3167,10 @@ def test_do_authn(self):
3167
3167
binding = binding , response_binding = response_binding )
3168
3168
3169
3169
assert isinstance (sid , six .string_types )
3170
- assert len (http_args ) == 4
3170
+ assert len (http_args ) == 5
3171
3171
assert http_args ["headers" ][0 ][0 ] == "Location"
3172
3172
assert http_args ["data" ] == []
3173
+ assert http_args ["status" ] == 303
3173
3174
redirect_url = http_args ["headers" ][0 ][1 ]
3174
3175
_ , _ , _ , _ , qs , _ = parse .urlparse (redirect_url )
3175
3176
qs_dict = parse .parse_qs (qs )
@@ -3188,9 +3189,10 @@ def test_do_negotiated_authn(self):
3188
3189
3189
3190
assert binding == auth_binding
3190
3191
assert isinstance (sid , six .string_types )
3191
- assert len (http_args ) == 4
3192
+ assert len (http_args ) == 5
3192
3193
assert http_args ["headers" ][0 ][0 ] == "Location"
3193
3194
assert http_args ["data" ] == []
3195
+ assert http_args ["status" ] == 303
3194
3196
redirect_url = http_args ["headers" ][0 ][1 ]
3195
3197
_ , _ , _ , _ , qs , _ = parse .urlparse (redirect_url )
3196
3198
qs_dict = parse .parse_qs (qs )
@@ -3247,6 +3249,7 @@ def test_post_sso(self):
3247
3249
# Here I fake what the client will do
3248
3250
# create the form post
3249
3251
3252
+ http_args .pop ('status' )
3250
3253
http_args ["data" ] = parse .urlencode (_dic )
3251
3254
http_args ["method" ] = "POST"
3252
3255
http_args ["dummy" ] = _dic ["SAMLRequest" ]
@@ -3283,6 +3286,7 @@ def test_negotiated_post_sso(self):
3283
3286
# Here I fake what the client will do
3284
3287
# create the form post
3285
3288
3289
+ http_args .pop ('status' )
3286
3290
http_args ["data" ] = parse .urlencode (_dic )
3287
3291
http_args ["method" ] = "POST"
3288
3292
http_args ["dummy" ] = _dic ["SAMLRequest" ]
0 commit comments