def METHOD_NAME():
    yl = YumLog(context_wrap(OKAY))
    pkgs = yl.packages_of('Installed')
    assert len(pkgs) == 1
    pkgs = yl.packages_of('Updated')
    assert len(pkgs) == 4
    pkgs = yl.packages_of(['Installed', 'Updated'])
    assert len(pkgs) == 5
    e = pkgs.get('openssl-libs')
    assert e.pkg.name == 'openssl-libs'
    assert e.pkg.version == '1.0.1e'
    pkgs = yl.packages_of(['Erased'])
    assert len(pkgs) == 2
    assert "katello-agent" in pkgs
    assert "redhat-access-insights-batch" in pkgs