#NEWLINE# def test_server_group_create_with_multiple_policies( self ) : #NEWLINE# #INDENT# arglist = [ '--policy' , 'affinity' , '--policy' , 'soft-affinity' , 'affinity_group' ] #NEWLINE# verifylist = [ ( 'policy' , [ 'affinity' , 'soft-affinity' ] ) , ( 'name' , 'affinity_group' ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# self . server_groups_mock . create . assert_called_once_with ( name = parsed_args . name , policies = parsed_args . policy ) #NEWLINE# self . assertEqual ( self . columns , columns ) #NEWLINE# self . assertEqual ( self . data , data )