#NEWLINE# @ raises ( DependencyLoop ) #NEWLINE# def test_dependency_loop( ) : #NEWLINE# #INDENT# foo = Dependent ( 'foo' ) #NEWLINE# bar = Dependent ( 'bar' , depends_on = [ foo ] ) #NEWLINE# my_foo = Dependent ( 'foo' , depends_on = [ bar ] ) #NEWLINE# solve ( bar , context = { my_foo } )