def METHOD_NAME(self):
    self.client.login(username='user', password='test')
    assert Queue.objects.get(pk=self.created_queue.id).name == 'TestUserQueue'
    response, rabbit_create_queue_called = self.queue_api_request_with_mock(
        'put',
        'queues-detail',
        {'pk': self.created_queue.id},
        self._get_test_update_data()
    )
    assert not rabbit_create_queue_called
    assert response.status_code == 200
    assert Queue.objects.get(pk=self.created_queue.id).name == 'A BRAND NEW NAME'
    response, rabbit_create_queue_called = self.queue_api_request_with_mock(
        'delete',
        'queues-detail',
        {'pk': self.created_queue.id},
    )
    assert response.status_code == 204
    assert not Queue.objects.filter(pk=self.created_queue.id).exists()