We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0532346 commit ec84a2eCopy full SHA for ec84a2e
tests/test_attrib.py
@@ -118,8 +118,11 @@ def test_lic_key_name_sync(self):
118
errors, abouts = model.collect_inventory(test_file)
119
attrib.generate_and_save(abouts, output_file, template_loc)
120
121
- f1 = open(output_file, "r").read().replace(" ", "").strip('\n').strip('\t')
122
- f2 = open(expected,"r").read().replace(" ", "").strip('\n').strip('\t')
+ with open(output_file) as of:
+ f1 = '\n'.join(of.readlines(False))
123
+ with open(expected) as ef:
124
+ f2 = '\n'.join(ef.readlines(False))
125
+
126
assert f1 == f2
127
128
def remove_timestamp(html_text):
0 commit comments