tests: Ensure lines look right when checking tabs.

This commit is contained in:
Florian Bruhin 2016-01-09 00:14:57 +01:00
parent 364d069e74
commit 4ef0c3e09f

View File

@ -371,6 +371,7 @@ def check_open_tabs(quteproc, tabs):
for i, line in enumerate(tabs): for i, line in enumerate(tabs):
line = line.strip() line = line.strip()
assert line.startswith('- ')
line = line[2:] # remove "- " prefix line = line[2:] # remove "- " prefix
if line.endswith(active_suffix): if line.endswith(active_suffix):
path = line[:-len(active_suffix)] path = line[:-len(active_suffix)]