##// END OF EJS Templates
add `float_precision` trait to PlainTextFormatter...
add `float_precision` trait to PlainTextFormatter * moved content of %precision into _float_precision_changed * %precision is now 2 lines that simply sets PTF.float_precision * added doctests for %precision * added tests for PTF.float_precision

File last commit:

r2020:f3a106b5
r3350:a41b73bf
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)