#NEWLINE# def test_user_create_or_show_exists( self ) : #NEWLINE# #INDENT# def _raise_conflict( * args , **kwargs ) : #NEWLINE# #INDENT# raise ks_exc . Conflict ( None ) #NEWLINE# #UNINDENT# self . users_mock . create . side_effect = _raise_conflict #NEWLINE# self . users_mock . get . return_value = fakes . FakeResource ( None , copy . deepcopy ( identity_fakes . USER ) , loaded = True ) #NEWLINE# arglist = [ '--or-show' , identity_fakes . user_name ] #NEWLINE# verifylist = [ ( 'name' , identity_fakes . user_name ) , ( 'or_show' , True ) ] #NEWLINE# parsed_args = self . check_parser ( data . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# self . users_mock . get . assert_called_with ( identity_fakes . user_name ) #NEWLINE# self . assertEqual ( self . columns , columns ) #NEWLINE# self . assertEqual ( self . datalist , data )