'Test with a fake unknown sys.platform.'

def test_unknown_fake(self, monkeypatch):

    monkeypatch.setattr(version.sys, 'platform', 'toaster')
    ret = version._os_info()
    expected = ['OS    Version:    ?']
    assert (ret == expected)
