import demistomock as demisto from GetLicenseID import get_license_id def test_human_readable(mocker): mocker.patch.object(demisto, "getLicenseID", return_value="test_license_id") human_readable_results, context = get_license_id() assert human_readable_results == "### Cortex XSOAR License ID\n|License ID|\n|---|\n| test_license_id |\n" assert context.get("License").get("ID") == "test_license_id"