Commit c74c3620 authored by juga's avatar juga
Browse files

Revert "Switch header to one line"

This reverts commit 628d21a9.
parent 418ef925
......@@ -30,6 +30,6 @@ class V3BwHeader(object):
def __str__(self):
"""Return header string following spec version 1.1.0."""
frmt = '{timestamp} version={version} software={software} ' \
frmt = '{timestamp}\nversion={version}\nsoftware={software}\n' \
'software_version={software_version}\n'
return frmt.format(**self.__dict__)
......@@ -7,7 +7,7 @@ import logging
log = logging.getLogger(__name__)
NUM_LINES_HEADER = 1
NUM_LINES_HEADER = 4
def test_generate_no_dotsbws(tmpdir, caplog, parser):
......
......@@ -8,8 +8,8 @@ def test_v3bwheader_str():
"""Test header str"""
timestamp = 1524661857
header = V3BwHeader(timestamp)
assert str(header) == '{}\nversion=1.1.0 software=sbws ' \
'software_version={}\n'.format(timestamp, version)
assert str(header) == '{}\nversion=1.1.0\nsoftware=sbws\n' \
'software_version=0.1.0\n'.format(timestamp)
def test_v3bwfile():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment