Skip to content

Commit bfcf1a4

Browse files
Char by char inspection of Cluster and Attribute string.
1 parent 3912f15 commit bfcf1a4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/tests/run_tv_casting_test.py

+16
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,14 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
362362
logging.info(tv_casting_line.rstrip('\n')) # SHAO
363363

364364
if 'Cluster =' in tv_casting_line:
365+
print('SHAO char by char of the Cluster string: ')
366+
result = ''
367+
for char in repr(line):
368+
# print(char)
369+
result += char
370+
print(result)
371+
372+
365373
cluster_value = extract_value_from_string(tv_casting_line)
366374
if cluster_value != CLUSTER_MEDIA_PLAYBACK:
367375
print('SHAO we entered into the mismatch cluster ID block!!!!')
@@ -373,6 +381,14 @@ def parse_tv_casting_app_for_report_data_msg(tv_casting_app_info: Tuple[subproce
373381
continue_parsing = False
374382

375383
elif 'Attribute =' in tv_casting_line:
384+
print('SHAO char by char of the Attribute string: ')
385+
result = ''
386+
for char in repr(line):
387+
# print(char)
388+
result += char
389+
print(result)
390+
391+
376392
attribute_value = extract_value_from_string(tv_casting_line)
377393
if attribute_value != ATTRIBUTE_CURRENT_PLAYBACK_STATE:
378394
print('SHAO we entered into the mismatch attribute ID block!!!!')

0 commit comments

Comments
 (0)