Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
fslpy
Commits
1e360ab9
Commit
1e360ab9
authored
Jan 19, 2018
by
Paul McCarthy
🚵
Browse files
Docs and unit tests for meta module
parent
c24eaeca
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/fsl.utils.meta.rst
0 → 100644
View file @
1e360ab9
``fsl.utils.meta``
==================
.. automodule:: fsl.utils.meta
:members:
:undoc-members:
:show-inheritance:
tests/test_meta.py
0 → 100644
View file @
1e360ab9
#!/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
())
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment