Skip to content

Commit ba7d2ca

Browse files
committed
started on a test_utils module. Not the final tests, just some random strings
1 parent 8a8fb94 commit ba7d2ca

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

nibabel/cmdline/tests/test_utils.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
""" Test scripts
4+
5+
Test running scripts
6+
"""
7+
8+
from numpy.testing import (assert_almost_equal,
9+
assert_array_equal)
10+
11+
from nose.tools import (assert_true, assert_false, assert_raises,
12+
assert_equal, assert_not_equal)
13+
14+
from nibabel.cmdline.utils import *
15+
16+
17+
def test_table2string():
18+
assert_equal(table2string([["A", "B", "C", "D"], ["E", "F", "G", "H"]]), "A B C D\nE F G H\n")
19+
assert_equal(table2string([["Let's", "Make", "Tests", "And"], ["Have", "Lots", "Of", "Fun"],
20+
["With", "Python", "Guys", "!"]]), "Let's Make Tests And\n Have Lots Of Fun"+
21+
"\n With Python Guys !\n")

0 commit comments

Comments
 (0)