#NEWLINE# def test_allows_customizing_binding_spec_standard_method_names( self ) : #NEWLINE# #INDENT# class BindingSpecOne ( bindings . BindingSpec ) : #NEWLINE# #INDENT# def Configure( self , bind ) : #NEWLINE# #INDENT# bind ( 'foo' , to_instance = 'a-foo' ) #NEWLINE# #UNINDENT# def Dependencies( self ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# #UNINDENT# class BindingSpecTwo ( bindings . BindingSpec ) : #NEWLINE# #INDENT# def Configure( self , bind ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def Dependencies( self ) : #NEWLINE# #INDENT# return [ BindingSpecOne ( ) ] #NEWLINE# #UNINDENT# #UNINDENT# class SomeClass ( object ) : #NEWLINE# #INDENT# def __init__( self , foo ) : #NEWLINE# #INDENT# self . foo = foo #NEWLINE# #UNINDENT# #UNINDENT# obj_graph = object_graph . new_object_graph ( modules = None , classes = [ SomeClass ] , binding_specs = [ BindingSpecTwo ( ) ] , configure_method_name = 'Configure' , dependencies_method_name = 'Dependencies' ) #NEWLINE# some_class = obj_graph . provide ( SomeClass ) #NEWLINE# self . assertEqual ( 'a-foo' , some_class . foo )