Commit 1e360ab9 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Docs and unit tests for meta module

parent c24eaeca
``fsl.utils.meta``
==================
.. automodule:: fsl.utils.meta
:members:
:undoc-members:
:show-inheritance:
#!/usr/bin/env python
#
# test_meta.py -
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
import fsl.utils.meta as meta
def test_meta():
m = meta.Meta()
data = {'a': 1, 'b' : 2, 'c' : 3}
for k, v in data.items():
m.setMeta(k, v)
for k, v in data.items():
assert m.getMeta(k) == v
assert list(data.keys()) == list(m.metaKeys())
assert list(data.values()) == list(m.metaValues())
assert list(data.items()) == list(m.metaItems())
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