Be explicit about expected output in test

This commit is contained in:
Florian Bruhin 2018-03-11 14:35:15 +01:00
parent 591883656e
commit b6e29d8eae

View File

@ -713,7 +713,7 @@ class TestOsInfo:
uname_tuple = ('PosixOS', 'localhost', '1.0', '1.0', 'i386', 'i386')
monkeypatch.setattr(version.platform, 'uname', lambda: uname_tuple)
ret = version._os_info()
expected = ['OS Version: %s' % ' '.join(uname_tuple)]
expected = ['OS Version: PosixOS localhost 1.0 1.0 i386 i386']
assert ret == expected
@pytest.mark.fake_os('unknown')