def setUp(self): self.mockery = Mocker() self.assembler = assembler() self.assembler.register(no_deps) self.assembler.register(one_dep, requires=[no_deps]) self.assembler.register(two_deps, requires=[no_deps, one_dep], cacheable=False)
def should_be_able_to_provide_itself_to_created_objects(self): asm = assembler() asm.register(one_dep, requires=[assembler]) instance = asm.provide(one_dep)