def METHOD_NAME(vm):
    """Ensure packages applicability is functioning properly.
    :id: 4feb692c-165b-4f96-bb97-c8447bd2cf6e
    :steps:
        1. Setup a content host with registration to unrestricted org
        2. Install a package that has updates
        3. Run `hammer package list` specifying option
            packages-restrict-applicable="true".
    :expectedresults:
        1. Update package is available independent of subscription because
            Golden Ticket is enabled.
    :BZ: 1344049, 1498158
    :parametrized: yes
    :CaseImportance: Critical
    """
    for _ in range(30):
        applicable_packages = Package.list(
            {
                'host': vm.hostname,
                'packages-restrict-applicable': 'true',
                'search': f'name={REAL_RHEL7_0_2_PACKAGE_NAME}',
            }
        )
        if applicable_packages:
            break
        time.sleep(10)
    assert len(applicable_packages) > 0
    assert REAL_RHEL7_0_2_PACKAGE_FILENAME in [
        package['filename'] for package in applicable_packages
    ]