#NEWLINE# def _cell_create_child( self ) : #NEWLINE# #INDENT# body = { #NEWLINE# #INDENT# 'cell' : { #NEWLINE# #INDENT# 'name' : 'meow' , #NEWLINE# 'username' : 'fred' , #NEWLINE# 'password' : 'fubar' , #NEWLINE# 'rpc_host' : 'r3.example.org' , #NEWLINE# 'type' : 'child' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# req = self . _get_request ( 'cells' ) #NEWLINE# req . environ [ 'nova.context' ] = self . context #NEWLINE# res_dict = self . controller . create ( req , body = body ) #NEWLINE# cell = res_dict [ 'cell' ] #NEWLINE# self . assertEqual ( cell [ 'name' ] , 'meow' ) #NEWLINE# self . assertEqual ( cell [ 'username' ] , 'fred' ) #NEWLINE# self . assertEqual ( cell [ 'rpc_host' ] , 'r3.example.org' ) #NEWLINE# self . assertEqual ( cell [ 'type' ] , 'child' ) #NEWLINE# self . assertNotIn ( 'password' , cell ) #NEWLINE# self . assertNotIn ( 'is_parent' , cell )