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

All Samples(17)  |  Call(6)  |  Derive(10)  |  Import(1)

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/testing/test_pycollect.py   plexnet(Download)
    def test_function_equality(self, tmpdir):
        config = py.test.config._reparse([tmpdir])
        f1 = py.test.collect.Function(name="name", 
                                      args=(1,), callobj=isinstance)
        f2 = py.test.collect.Function(name="name",
                                      args=(1,), callobj=callable)
        assert not f1 == f2
        assert f1 != f2
        f3 = py.test.collect.Function(name="name", 
        assert f3 != f1
 
        f1_b = py.test.collect.Function(name="name", 
                                      args=(1,), callobj=isinstance)
        assert f1 == f1_b
            funcargs = {}
            id = "world"
        f5 = py.test.collect.Function(name="name", 
                                      callspec=callspec1, callobj=isinstance)
        f5b = py.test.collect.Function(name="name", 

src/s/y/Sypy-HEAD/conftest.py   Sypy(Download)
class IntTestFunction(py.test.collect.Function):
    def __init__(self, *args, **kwargs):
        super(IntTestFunction, self).__init__(*args, **kwargs)
        self.keywords['interplevel'] = True
 
class AppTestFunction(py.test.collect.Function):
    def __init__(self, *args, **kwargs):
        super(AppTestFunction, self).__init__(*args, **kwargs)
        self.keywords['applevel'] = True
 
class ExpectTestMethod(py.test.collect.Function):
    def safe_name(target):
        s = "_".join(target)
        s = s.replace("()", "paren")
        s = s.replace(".py", "")

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/conftest.py   plexnet(Download)
class PyPyTestFunction(py.test.collect.Function):
    # All PyPy test items catch and display OperationErrors specially.
    #
    def execute_appex(self, space, target, *args):
        try:
class ExpectTestMethod(py.test.collect.Function):
    def safe_name(target):
        s = "_".join(target)
        s = s.replace("()", "paren")
        s = s.replace(".py", "")

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/plugin/pytest_unittest.py   plexnet(Download)
class UnitTestFunction(py.test.collect.Function):
    def __init__(self, name, parent, args=(), obj=_dummy, sort_value=None):
        super(UnitTestFunction, self).__init__(name, parent)
        self._args = args
        if obj is not _dummy:

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/compat.py   plexnet(Download)
import py
 
from py.test.collect import Function
 
class TestCaseUnit(Function):

src/m/o/moingo-HEAD/MoinMoin/conftest.py   moingo(Download)
class MoinTestFunction(py.test.collect.Function):
    def execute(self, target, *args):
        request = self.parent.request
        co = target.func_code
        if 'request' in co.co_varnames[:co.co_argcount]:

src/o/e/oejskit-0.9.0/oejskit/pytest_jstests.py   oejskit(Download)
class JsTest(py.test.collect.Function):
 
    def reportinfo(self):
        fspath, lineno = self.parent._getfslineno()
        return fspath, lineno, self.getmodpath()

src/j/i/Jinja-1.2/tests/conftest.py   Jinja(Download)
class JinjaTestFunction(py.test.collect.Function):
 
    def execute(self, target, *args):
        loader.scope = target.func_globals
        co = target.func_code