예제 #1
0
 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)
예제 #2
0
 def should_be_able_to_provide_itself_to_created_objects(self):
     asm = assembler()
     asm.register(one_dep, requires=[assembler])
     instance = asm.provide(one_dep)
예제 #3
0
 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)
예제 #4
0
 def should_be_able_to_provide_itself_to_created_objects(self):
     asm = assembler()
     asm.register(one_dep, requires=[assembler])
     instance = asm.provide(one_dep)