import sys
import os

import osw.wiki_tools as wt 


def test_create_flat_content_structure_from_wikitext():
    wikitext = (
        "{{Template"
        "|param=value"
        "}}"
    )
    expected = [
        {"Template": {"param": ["value"]}}
    ]
    result = wt.create_flat_content_structure_from_wikitext(wikitext)
    assert result == expected
