#NEWLINE# def test_raises_error_if_only_binding_has_no_annotation( self ) : #NEWLINE# #INDENT# class ClassOne ( object ) : #NEWLINE# #INDENT# @ decorators . annotate_arg ( 'foo' , 'an-annotation' ) #NEWLINE# def __init__( self , foo ) : #NEWLINE# #INDENT# self . foo = foo #NEWLINE# #UNINDENT# #UNINDENT# class SomeBindingSpec ( bindings . BindingSpec ) : #NEWLINE# #INDENT# def configure( self , bind ) : #NEWLINE# #INDENT# bind ( 'foo' , to_instance = 'a-foo' ) #NEWLINE# #UNINDENT# #UNINDENT# obj_graph = object_graph . new_object_graph ( modules = None , classes = [ ClassOne ] , binding_specs = [ SomeBindingSpec ( ) ] ) #NEWLINE# self . assertRaises ( errors . NothingInjectableForArgError , self . provide , ClassOne )