@@ -113,7 +113,7 @@ def verify_t_value(self, t_value):
113
113
else :
114
114
return False , f"Bit 0 is not clear. T value ({ t_value } )"
115
115
except ValueError :
116
- return False , "T value ({t_value}) is not a valid decimal number."
116
+ return False , f "T value ({ t_value } ) is not a valid decimal number."
117
117
118
118
@staticmethod
119
119
def contains_ipv6_address (addresses ):
@@ -128,7 +128,7 @@ def contains_ipv6_address(addresses):
128
128
129
129
@async_test_body
130
130
async def test_TC_SC_4_3 (self ):
131
- print (f "\n "* 10 )
131
+ print ("\n " * 10 )
132
132
133
133
supports_icd = None
134
134
supports_lit = None
@@ -181,7 +181,7 @@ async def test_TC_SC_4_3(self):
181
181
182
182
# ICD TXT KEY
183
183
if supports_lit :
184
- logging .info (f "supports_lit is true, verify the ICD key IS present in the TXT record, and it has the value of 0 or 1 (ASCII)." )
184
+ logging .info ("supports_lit is true, verify the ICD key IS present in the TXT record, and it has the value of 0 or 1 (ASCII)." )
185
185
186
186
# Verify the ICD key IS present
187
187
asserts .assert_in ('ICD' , operational .txt_record , "ICD key is NOT present in the TXT record." )
@@ -190,7 +190,7 @@ async def test_TC_SC_4_3(self):
190
190
icd_value = int (operational .txt_record ['ICD' ])
191
191
asserts .assert_true (icd_value == 0 or icd_value == 1 , "ICD value is different than 0 or 1 (ASCII)." )
192
192
else :
193
- logging .info (f "supports_lit is false, verify that the ICD key is NOT present in the TXT record." )
193
+ logging .info ("supports_lit is false, verify that the ICD key is NOT present in the TXT record." )
194
194
asserts .assert_not_in ('ICD' , operational .txt_record , "ICD key is present in the TXT record." )
195
195
196
196
# SII TXT KEY
@@ -207,34 +207,34 @@ async def test_TC_SC_4_3(self):
207
207
sit_mode = False
208
208
209
209
if sit_mode :
210
- logging .info (f "sit_mode is True, verify the SII key IS present." )
210
+ logging .info ("sit_mode is True, verify the SII key IS present." )
211
211
asserts .assert_in ('SII' , operational .txt_record , "SII key is NOT present in the TXT record." )
212
212
213
- logging .info (f "Verify SII value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms)." )
213
+ logging .info ("Verify SII value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms)." )
214
214
sii_value = operational .txt_record ['SII' ]
215
215
result , message = self .verify_decimal_value (sii_value , self .ONE_HOUR_IN_MS )
216
216
asserts .assert_true (result , message )
217
217
218
218
# SAI TXT KEY
219
219
if supports_icd :
220
- logging .info (f "supports_icd is True, verify the SAI key IS present." )
220
+ logging .info ("supports_icd is True, verify the SAI key IS present." )
221
221
asserts .assert_in ('SAI' , operational .txt_record , "SAI key is NOT present in the TXT record." )
222
222
223
- logging .info (f "Verify SAI value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms)." )
223
+ logging .info ("Verify SAI value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms)." )
224
224
sai_value = operational .txt_record ['SAI' ]
225
225
result , message = self .verify_decimal_value (sai_value , self .ONE_HOUR_IN_MS )
226
226
asserts .assert_true (result , message )
227
227
228
228
# SAT TXT KEY
229
229
if 'SAT' in operational .txt_record :
230
230
logging .info (
231
- f "SAT key is present in TXT record, verify that it is a decimal value with no leading zeros and is less than or equal to 65535." )
231
+ "SAT key is present in TXT record, verify that it is a decimal value with no leading zeros and is less than or equal to 65535." )
232
232
sat_value = operational .txt_record ['SAT' ]
233
233
result , message = self .verify_decimal_value (sat_value , self .MAX_SAT_VALUE )
234
234
asserts .assert_true (result , message )
235
235
236
236
if supports_icd :
237
- logging .info (f "supports_icd is True, verify the SAT value is equal to active_mode_threshold." )
237
+ logging .info ("supports_icd is True, verify the SAT value is equal to active_mode_threshold." )
238
238
asserts .assert_equal (int (sat_value ), active_mode_threshold_ms )
239
239
240
240
# # T TXT KEY
@@ -245,7 +245,7 @@ async def test_TC_SC_4_3(self):
245
245
# asserts.assert_true(result, message)
246
246
247
247
# AAAA
248
- logging .info (f "Verify the AAAA record contains at least one IPv6 address" )
248
+ logging .info ("Verify the AAAA record contains at least one IPv6 address" )
249
249
result , message = self .contains_ipv6_address (operational .addresses )
250
250
asserts .assert_true (result , message )
251
251
@@ -255,7 +255,7 @@ async def test_TC_SC_4_3(self):
255
255
op_sub_type = self .get_operational_subtype ()
256
256
asserts .assert_in (op_sub_type , service_types , f"No PTR record with DNS-SD instance name '{ op_sub_type } '" )
257
257
258
- print (f "\n "* 10 )
258
+ print ("\n " * 10 )
259
259
260
260
261
261
if __name__ == "__main__" :
0 commit comments