Commit 7411dc04 authored by Martin Claus's avatar Martin Claus

Added first tests

parent fece4657
"""Test paring of namelists to dictionary."""
import pytest
from context import namelist
@pytest.mark.parametrize(
"string",
["&nml &end",
"&nml\n&end",
"&nml /", "&nml/",
]
)
def test_parse_string(string):
nml = namelist.parse_namelist_string(string)[0]
assert nml.name == "nml"
Markdown is supported
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