Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/n/i/nibabel-HEAD/nisext/tests/test_doctest_markup.py   nibabel(Download)
""" Testing doctest markup tests
"""
 
import sys
from ..py3builder import doctest_markup, byter
def test_some_text():
    out_lines, err_tuples = doctest_markup(IN_TXT.splitlines(True))
    assert_equal(out_lines, OUT_TXT.splitlines(True))
    err_lines, err_msgs = zip(*err_tuples)
    assert_equal(list(err_lines), ERR_TXT.splitlines(True))
def test_bytes_text():
    out_lines, err_tuples = doctest_markup(IN_BYTES_TXT.splitlines(True))
    assert_equal(out_lines, OUT_BYTES_TXT.splitlines(True))
    err_lines, err_msgs = zip(*err_tuples)
    assert_equal(list(err_lines), ERR_BYTES_TXT.splitlines(True))

src/n/i/nibabel-1.3.0/nisext/tests/test_doctest_markup.py   nibabel(Download)
""" Testing doctest markup tests
"""
 
import sys
from ..py3builder import doctest_markup, byter
def test_some_text():
    out_lines, err_tuples = doctest_markup(IN_TXT.splitlines(True))
    assert_equal(out_lines, OUT_TXT.splitlines(True))
    err_lines, err_msgs = zip(*err_tuples)
    assert_equal(list(err_lines), ERR_TXT.splitlines(True))
def test_bytes_text():
    out_lines, err_tuples = doctest_markup(IN_BYTES_TXT.splitlines(True))
    assert_equal(out_lines, OUT_BYTES_TXT.splitlines(True))
    err_lines, err_msgs = zip(*err_tuples)
    assert_equal(list(err_lines), ERR_BYTES_TXT.splitlines(True))