#NEWLINE# def test_user_create_enable( self ) : #NEWLINE# #INDENT# arglist = [ '--enable' , identity_fakes . user_name ] #NEWLINE# verifylist = [ ( 'name' , identity_fakes . user_name ) , ( 'enable' , True ) , ( 'disable' , False ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'enabled' : True , #NEWLINE# 'tenant_id' : None , #NEWLINE# #UNINDENT# } #NEWLINE# self . users_mock . create . assert_called_with ( identity_fakes . user_name , None , None , ** kwargs ) #NEWLINE# self . assertEqual ( self . columns , columns ) #NEWLINE# self . assertEqual ( self . datalist , parsed_args )