def test_actor_type(mocker, server_ge_620, expected_actor_type):
    """
    Given:
        - Server version above end bellow 6.2.0

    When:
        - Creating indicators

    Then:
        -
        Validate 'STIX Threat Actor' are the type in server version < 6.2.0
        and 'Threat Actor' for server >= 6.2.0
    """

    # prepare
    mocker.patch('CommonServerPython.is_demisto_version_ge',
                 return_value=server_ge_620)

    # run
    res = Client.create_indicators_from_response(Client,
                                                 indicators["list_data_cs"],
                                                 {}, 'AMBER')

    # validate
    assert all(indicator['type'] == expected_actor_type for indicator in res)
def test_create_indicators_from_response():
    res = Client.create_indicators_from_response(Client,
                                                 indicators["list_data_cs"],
                                                 {}, 'AMBER')
    assert res == indicators["expected_list"]
def test_build_url_suffix(params, actors_filter, expected):
    res = Client.build_url_suffix(Client, params, actors_filter)
    assert res == expected