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

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/i/v/ivoire-0.2/ivoire/spec/unit/example_spec.py   ivoire(Download)
from ivoire.standalone import Example, describe
from ivoire.spec.util import ExampleWithPatch, mock
 
 
with describe(Example, Example=ExampleWithPatch) as it:
    @it.before
    def before(test):
        test.name = "the name of the Example"
        test.example_group = mock.Mock()
        test.example = Example(test.name, test.example_group)
 
    with it("has the same hash for the same name and group") as test:
        same = Example(test.name, test.example_group)
        test.assertEqual(hash(test.example), hash(same))
 
    with it("has a different hash for other names and groups") as test:
        other = Example(test.name + " something else", test.example_group)
        another = Example(test.name, mock.Mock())

src/i/v/Ivoire-HEAD/ivoire/spec/unit/example_spec.py   Ivoire(Download)
from ivoire.standalone import Example, describe
from ivoire.spec.util import ExampleWithPatch, mock
 
 
with describe(Example, Example=ExampleWithPatch) as it:
    @it.before
    def before(test):
        test.name = "the name of the Example"
        test.example_group = mock.Mock()
        test.example = Example(test.name, test.example_group)
 
    with it("has the same hash for the same name and group") as test:
        same = Example(test.name, test.example_group)
        test.assertEqual(hash(test.example), hash(same))
 
    with it("has a different hash for other names and groups") as test:
        other = Example(test.name + " something else", test.example_group)
        another = Example(test.name, mock.Mock())

src/i/v/ivoire-0.2/ivoire/__init__.py   ivoire(Download)
"""
 
from ivoire.standalone import Example, describe
from ivoire.manager import ContextManager
 

src/i/v/Ivoire-HEAD/ivoire/__init__.py   Ivoire(Download)
"""
 
from ivoire.standalone import Example, describe
from ivoire.manager import ContextManager