##// END OF EJS Templates
swallow stdout and report time for build/install step in test_pr...
swallow stdout and report time for build/install step in test_pr The vast majority of the output of test_pr is uninteresting stdout for install. It's also possible for system-site-packages envs to end up importing IPython *not* from the install we mean to test, so add a check for that.

File last commit:

r2020:f3a106b5
r8113:5d68b79f
Show More
test_fakemodule.py
17 lines | 468 B | text/x-python | PythonLexer
"""Tests for the FakeModule objects.
"""
import nose.tools as nt
from IPython.core.fakemodule import FakeModule, init_fakemod_dict
# Make a fakemod and check a few properties
def test_mk_fakemod():
fm = FakeModule()
yield nt.assert_true,fm
yield nt.assert_true,lambda : hasattr(fm,'__file__')
def test_mk_fakemod_fromdict():
"""Test making a FakeModule object with initial data"""
fm = FakeModule(dict(hello=True))
nt.assert_true(fm.hello)