@@ -76,10 +76,10 @@ def test_default_no_ignore(self, caplog):
76
76
77
77
expected_message = 'An unverified HTTPS request is being made to https://www.google.com'
78
78
for _ , level , message in caplog .record_tuples :
79
- if level == logging .WARNING and message == expected_message :
79
+ if level == logging .DEBUG and message == expected_message :
80
80
break
81
81
else :
82
- raise AssertionError ('Expected WARNING log with message `{}`' .format (expected_message ))
82
+ raise AssertionError ('Expected DEBUG log with message `{}`' .format (expected_message ))
83
83
84
84
def test_default_no_ignore_http (self , caplog ):
85
85
instance = {}
@@ -113,10 +113,10 @@ def test_default_no_ignore_session(self, caplog):
113
113
114
114
expected_message = 'An unverified HTTPS request is being made to https://www.google.com'
115
115
for _ , level , message in caplog .record_tuples :
116
- if level == logging .WARNING and message == expected_message :
116
+ if level == logging .DEBUG and message == expected_message :
117
117
break
118
118
else :
119
- raise AssertionError ('Expected WARNING log with message `{}`' .format (expected_message ))
119
+ raise AssertionError ('Expected DEBUG log with message `{}`' .format (expected_message ))
120
120
121
121
def test_ignore_session (self , caplog ):
122
122
instance = {'tls_ignore_warning' : True , 'persist_connections' : True }
@@ -152,10 +152,10 @@ def test_default_init_no_ignore(self, caplog):
152
152
153
153
expected_message = 'An unverified HTTPS request is being made to https://www.google.com'
154
154
for _ , level , message in caplog .record_tuples :
155
- if level == logging .WARNING and message == expected_message :
155
+ if level == logging .DEBUG and message == expected_message :
156
156
break
157
157
else :
158
- raise AssertionError ('Expected WARNING log with message `{}`' .format (expected_message ))
158
+ raise AssertionError ('Expected DEBUG log with message `{}`' .format (expected_message ))
159
159
160
160
def test_instance_ignore (self , caplog ):
161
161
instance = {'tls_ignore_warning' : True }
@@ -179,10 +179,10 @@ def test_instance_no_ignore(self, caplog):
179
179
180
180
expected_message = 'An unverified HTTPS request is being made to https://www.google.com'
181
181
for _ , level , message in caplog .record_tuples :
182
- if level == logging .WARNING and message == expected_message :
182
+ if level == logging .DEBUG and message == expected_message :
183
183
break
184
184
else :
185
- raise AssertionError ('Expected WARNING log with message `{}`' .format (expected_message ))
185
+ raise AssertionError ('Expected DEBUG log with message `{}`' .format (expected_message ))
186
186
187
187
188
188
class TestAIAChasing :
0 commit comments