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

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

            def decorate(func, setup=setup, teardown=teardown):
        if setup:
            if hasattr(func, 'setup'):
                _old_s = func.setup
                def _s():
                    setup()
                    _old_s()
                func.setup = _s
            else:
                func.setup = setup
        if teardown:
            if hasattr(func, 'teardown'):
                _old_t = func.teardown
                def _t():
                    _old_t()
                    teardown()
                func.teardown = _t
            else:
                func.teardown = teardown
        return func
        


src/s/b/sbgsdk-0.5.4/sbgsdk/tests/test_wrappers/red_adder_test.py   sbgsdk(Download)
from sbgsdk.tests.test_tools.generator import generator
from sbgsdk.tests.test_wrappers import RedAdder
from sbgsdk.tests.common import cleanup
 
 

src/s/b/sbgsdk-0.5.4/sbgsdk/tests/test_wrappers/green_generator_test.py   sbgsdk(Download)
import os
import nose.tools
from sbgsdk.tests.test_wrappers.green_generator import GeneratorWrapper
from sbgsdk.tests.common import cleanup
 

src/s/b/sbgsdk-0.5.4/sbgsdk/tests/test_wrappers/blue_comparator_test.py   sbgsdk(Download)
from sbgsdk.test import assert_files_identical
from sbgsdk.tests.common import cleanup
from sbgsdk.tests.test_tools.generator import generator
from sbgsdk.tests.test_wrappers import BlueComparator
 

src/s/b/sbgsdk-0.5.4/sbgsdk/tests/cli_test/job_submit/test_job_submit.py   sbgsdk(Download)
from sbgsdk import errors
from sbgsdk.process import process_fails
from sbgsdk.tests.common import run_cli, cleanup, RED_ADDER_ID
 
 

src/s/b/sbgsdk-0.5.4/sbgsdk/tests/cli_test/execute_single/test_execute_single.py   sbgsdk(Download)
from sbgsdk import errors
from sbgsdk.process import process_fails
from sbgsdk.tests.common import run_cli, cleanup
 
 

src/s/b/sbgsdk-0.5.4/sbgsdk/tests/cli_test/execute_parallel/test_execute_parallel.py   sbgsdk(Download)
import os
import json
 
from sbgsdk.tests.common import run_cli, cleanup, RED_ADDER_ID