#NEWLINE# def test_create_body_invalid_allocation_type( self ) : #NEWLINE# #INDENT# client = Mock ( ) #NEWLINE# client . indices . get_settings . return_value = testvars . settings_one #NEWLINE# client . cluster . state . return_value = testvars . clu_state_one #NEWLINE# client . indices . stats . return_value = testvars . stats_one #NEWLINE# ilo = curator . IndexList ( client ) #NEWLINE# self . assertRaises ( ValueError , curator . Allocation , client , key = 'key' , value = 'value' , allocation_type = 'invalid' )