#NEWLINE# def test_qos_associate( self ) : #NEWLINE# #INDENT# self . qos_mock . get . return_value = fakes . FakeResource ( None , copy . deepcopy ( volume_fakes . QOS ) , loaded = True ) #NEWLINE# self . types_mock . get . return_value = fakes . FakeResource ( None , copy . deepcopy ( volume_fakes . TYPE ) , loaded = True ) #NEWLINE# arglist = [ volume_fakes . qos_id , volume_fakes . type_id ] #NEWLINE# verifylist = [ ( 'qos_spec' , volume_fakes . qos_id ) , ( 'volume_type' , volume_fakes . type_id ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# result = self . cmd . take_action ( parsed_args ) #NEWLINE# self . qos_mock . associate . assert_called_with ( volume_fakes . qos_id , volume_fakes . type_id ) #NEWLINE# self . assertIsNone ( result )