def test_delete_applicative_scan():
        """Tests for method delete_applicative_scan"""
        client = CBWApi(API_URL, API_KEY, SECRET_KEY)

        with vcr.use_cassette(
                'spec/fixtures/vcr_cassettes/delete_applicative_scan.yaml'):
            response = client.delete_applicative_scan('1')
            assert response is True

        with vcr.use_cassette(
                'spec/fixtures/vcr_cassettes/delete_applicative_scan_wrong_id.yaml'
        ):
            response = client.delete_applicative_scan('wrong_id')
            assert response is False
"""Delete applicative scan"""

import os
from configparser import ConfigParser
from cbw_api_toolbox.cbw_api import CBWApi

CONF = ConfigParser()
CONF.read(
    os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'api.conf'))
CLIENT = CBWApi(CONF.get('cyberwatch', 'url'),
                CONF.get('cyberwatch', 'api_key'),
                CONF.get('cyberwatch', 'secret_key'))

APPLICATIVE_SCAN_ID = ''  # ID of the applicative scan.

CLIENT.delete_applicative_scan(APPLICATIVE_SCAN_ID)