def test_is_py_or_yml_invalid():
    """
        Given:
            - A file path which contains a python script in a legacy yml schema
        When:
            - verifying the yml is valid
        Then:
            - return a False validation response
    """
    files_path = os.path.normpath(
        os.path.join(__file__, f'{git_path()}/demisto_sdk/tests', 'test_files'))
    test_file = os.path.join(files_path, 'UnifiedIntegrations/Integrations/integration-Symantec_Messaging_Gateway.yml')
    file_validator = FilesValidator()
    res = file_validator._is_py_script_or_integration(test_file)
    assert res is False
def test_is_py_or_yml():
    """
        Given:
            - A file path which contains a python script
        When:
            - verifying the yml is valid
        Then:
            - return a False validation response
    """
    files_path = os.path.normpath(
        os.path.join(__file__, f'{git_path()}/demisto_sdk/tests', 'test_files'))
    test_file = os.path.join(files_path, 'CortexXDR',
                             'Integrations/PaloAltoNetworks_XDR/PaloAltoNetworks_XDR.yml')
    file_validator = FilesValidator()
    res = file_validator._is_py_script_or_integration(test_file)
    assert res is False