#NEWLINE# def test_sort_service_dicts_circular_imports( self ) : #NEWLINE# #INDENT# services = [ { #NEWLINE# #INDENT# 'links' : [ 'redis' ] , #NEWLINE# 'name' : 'web' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'redis' , #NEWLINE# 'links' : [ 'web' ] , #NEWLINE# #UNINDENT# } ] #NEWLINE# with pytest . raises ( DependencyError ) as exc : #NEWLINE# #INDENT# sort_service_dicts ( services ) #NEWLINE# #UNINDENT# assert ( 'redis' in exc . exconly ( ) ) #NEWLINE# assert ( 'web' in exc . exconly ( ) )