Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/utils/tests/test_compat3.py   nipy(Download)
""" Testing compat3 module
"""
from __future__ import with_statement
 
from nibabel.py3k import asstr, asbytes
    assert_equal('1.0', to_str(1.0))
    assert_equal('from', to_str(asstr('from')))
    assert_equal('from', to_str(asbytes('from')))
 
 

src/n/i/nipy-0.3.0/nipy/algorithms/statistics/formula/tests/test_formula.py   nipy(Download)
from ..formulae import terms, Term
 
from nibabel.py3k import asbytes
 
from nose.tools import (assert_true, assert_equal, assert_false,
        assert_equal(f.levels, level_names)
    # Sending in byte objects
    levels = [asbytes(L) for L in level_names]
    f = F.Factor('myname', levels)
    assert_equal(f.levels, level_names)