@@ -502,7 +502,11 @@ def test_on_response(self):
502
502
info=response.request.info,
503
503
headers = response.request.headers,
504
504
url = response.request.url,
505
+ url_comparison = (
506
+ response.request.url == splash.args.url
507
+ ),
505
508
method = response.request.method,
509
+ method_comparison = (response.request.method == "GET")
506
510
}
507
511
}
508
512
result[#result+1] = resp_info
@@ -540,6 +544,7 @@ def test_on_response(self):
540
544
541
545
self .assertEqual (e1 ['request' ]['info' ]['url' ], url )
542
546
self .assertEqual (e1 ['request' ]['url' ], url )
547
+ self .assertEqual (e1 ['request' ]['url_comparison' ], True )
543
548
544
549
self .assertEqual (e1 ['request' ]['info' ]['headers' ], h1 ['request' ]['headers' ])
545
550
self .assertEqual (e1 ['request' ]['headers' ], {
@@ -551,6 +556,7 @@ def test_on_response(self):
551
556
self .assertIn ('User-Agent' , entry ['request' ]['headers' ])
552
557
553
558
self .assertEqual (e1 ['request' ]['method' ], 'GET' )
559
+ self .assertEqual (e1 ['request' ]['method_comparison' ], True )
554
560
self .assertEqual (e1 ['request' ]['info' ]['method' ], 'GET' )
555
561
556
562
self .assertEqual (e1 ['request' ]['info' ]['cookies' ], h1 ['request' ]['cookies' ])
0 commit comments