def test_create_applicative_scan():
        """Tests for method applicative_scan"""
        client = CBWApi(API_URL, API_KEY, SECRET_KEY)

        info = {"target": "127.0.0.1", "node_id": "1"}

        with vcr.use_cassette(
                'spec/fixtures/vcr_cassettes/create_applicative_scan.yaml'):
            response = client.create_applicative_scan(info)

            assert str(
                response
            ) == "cbw_object(id=2, node_id=1, target='127.0.0.1', server_id=2)"
"""Create applicative scan for network target or website"""

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'))

INFO = {
    "target": "",  # Mandatory address of the network target or the website..
    "node_id":
    "",  # Mandatory node that will perform the scans to the network target or website.
}

CLIENT.create_applicative_scan(INFO)