test subpackage

This commit is contained in:
Anthony Scopatz 2015-03-29 22:53:33 -05:00
parent b93d4e03a0
commit 78cc184a15
3 changed files with 9 additions and 0 deletions

View file

@ -36,6 +36,10 @@ def test_relative_import():
assert_equal('hello mom jawaka\n', relimp.sample.x) assert_equal('hello mom jawaka\n', relimp.sample.x)
assert_equal('hello mom jawaka\ndark chest of wonders', relimp.y) assert_equal('hello mom jawaka\ndark chest of wonders', relimp.y)
def test_sub_import():
from xpack.sub import sample
assert_equal('hello mom jawaka\n', sample.x)
if __name__ == '__main__': if __name__ == '__main__':
nose.runmodule() nose.runmodule()

View file

View file

@ -0,0 +1,5 @@
# I am a test module.
aliases['echo'] = lambda args, stdin=None: print(' '.join(args))
$WAKKA = "jawaka"
x = $(echo "hello mom" $WAKKA)