#NEWLINE# @ mock . patch . object ( connection , 'get' ) #NEWLINE# def test_get_connections( self , mock_get ) : #NEWLINE# #INDENT# filter = '?start=0&count=10' #NEWLINE# self . servers . get_connections ( filter = filter ) #NEWLINE# mock_get . assert_called_once_with ( ( uri [ 'conn' ] + filter ) )