Did I find the right examples for you? yes no

All Samples(2904)  |  Call(0)  |  Derive(0)  |  Import(2904)

src/p/y/pyfunct-0.1.2/examples/run_example.py   pyfunct(Download)
import nose
import time
import os
 
from nose.plugins import Plugin

src/p/y/pyparsing-2.0.2/examples/test_bibparse.py   pyparsing(Download)
 
if __name__ == '__main__':
    import nose
    nose.main()
 

src/p/y/pymc-example-tfr-hdi-HEAD/src/tests.py   pymc-example-tfr-hdi(Download)
 
if __name__ == '__main__':
    import nose
    nose.run()
 

src/d/j/django-tags-input-HEAD/example/tests.py   django-tags-input(Download)
import nose
from .autocompletionexample import models
from django import forms, test
from django.contrib.auth import models as auth_models
from django.test import client, utils as test_utils

src/r/e/rednose-HEAD/sample_test.py   rednose(Download)
	def test_skip(self):
		import nose
		raise nose.SkipTest
 
	def test_with_long_description(self):

src/p/h/phase-coupling-estimation-HEAD/python/phasemodel/hmc2.py   phase-coupling-estimation(Download)
def test_default_opt():
    import nose
    default_options = dict(display=False,
                           chckgrad=False,
                           steps=1,
def test_set_opt():
    import nose
    options = dict(display = True,
                   checkgrad = True,
                   steps = 2,
def test_checkgrad():
    import nose
    import f_energy as en
    sz = 10
    x0 = np.zeros(sz)
def test_set_randstate():
    import nose
    state = get_state()
    rand = np.random.rand()
    set_state(state)
def test_addlogs():
    import nose
    a,b = np.random.randn(2)
    nose.tools.assert_almost_equal(addlogs(a,b),np.log(np.exp(a)+np.exp(b)))
 

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/IPython/external/decorators/_decorators.py   antisocial(Download)
    def skip_decorator(f):
        # Local import to avoid a hard nose dependency and only incur the
        # import time overhead at actual test-time.
        import nose
 
    def knownfail_decorator(f):
        # Local import to avoid a hard nose dependency and only incur the
        # import time overhead at actual test-time.
        import nose
        def knownfailer(*args, **kwargs):
    def deprecate_decorator(f):
        # Local import to avoid a hard nose dependency and only incur the
        # import time overhead at actual test-time.
        import nose
 

src/p/y/pymaclab-0.95.9/sympycore/__init__.py   pymaclab(Download)
        import os
        import sys
        import nose
        #mpmath = sys.modules['sympycore.arithmetic.mpmath']
        d = os.path.dirname(os.path.abspath(__file__))
    def check_testing(self):
        import os, sys
        try:
            import nose
        except ImportError:
        minimum_nose_version = (0,10,0)
        try:
            import nose
            if nose.__versioninfo__ < minimum_nose_version:
                nose = None

src/p/a/pandas-0.13.1/pandas/util/decorators.py   pandas(Download)
    def knownfail_decorator(f):
        # Local import to avoid a hard nose dependency and only incur the
        # import time overhead at actual test-time.
        import nose
 

src/p/a/pandas-0.13.1/pandas/core/frame.py   pandas(Download)
 
if __name__ == '__main__':
    import nose
    nose.runmodule(argv=[__file__, '-vvs', '-x', '--pdb', '--pdb-failure'],
                   exit=False)

Previous  4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12  Next