@isolate_ipython0
def test_capture():
    # Test on the OS-level stdout, stderr.
    f = TestPrefilterFrontEnd()
    f.input_buffer = \
            'import os; out=os.fdopen(1, "w"); out.write("1") ; out.flush()'
    f._on_enter()
    out_value = f.out.getvalue()
    yield assert_equal, out_value, '1'
    f = TestPrefilterFrontEnd()
    f.input_buffer = \
            'import os; out=os.fdopen(2, "w"); out.write("1") ; out.flush()'
    f._on_enter()
    out_value = f.out.getvalue()
    yield assert_equal, out_value, '1'
Initialize this ContextTagger's ``_context_to_tag`` table
dataset/ETHPy150Open ipython/ipython-py3k/IPython/deathrow/oldfrontend/tests/test_prefilterfrontend.py/test_capture--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/tag/sequential.py/ContextTagger._train