#NEWLINE# def test_get_migrations( self ) : #NEWLINE# #INDENT# filters = { #NEWLINE# #INDENT# 'cell_name' : 'ChildCell' , #NEWLINE# 'status' : 'confirmed' , #NEWLINE# #UNINDENT# } #NEWLINE# migrations = { #NEWLINE# #INDENT# 'migrations' : [ { #NEWLINE# #INDENT# 'id' : 1234 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# cells_rpcapi = self . compute_api . cells_rpcapi #NEWLINE# self . mox . StubOutWithMock ( cells_rpcapi , 'get_migrations' ) #NEWLINE# cells_rpcapi . get_migrations ( self . context , filters ) . AndReturn ( migrations ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# response = self . compute_api . get_migrations ( self . context , filters ) #NEWLINE# self . assertEqual ( migrations , response )