Did I find the right examples for you? yes no

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

src/s/c/scikit-learn-0.14.1/sklearn/utils/tests/test_testing.py   scikit-learn(Download)
from nose.tools import assert_raises
 
from sklearn.utils.testing import (
    _assert_less,
    _assert_greater,
 
        assert_raises(AssertionError, assert_no_warnings, f)
        assert_equal(assert_no_warnings(lambda x: x, 1), 1)
 
        # Check that the warnings state is unchanged