def METHOD_NAME(pkgdir, confdir):
    (confdir / 'basic.override.json').write_text('{"description": "overridden package", "priority": 5}')
    packages = Packages()
    assert len(packages.packages) == 1
    # original attributes
    assert packages.packages['basic'].name == 'basic'
    assert packages.packages['basic'].manifest['requires'] == {'cockpit': '42'}
    # overridden attributes
    assert packages.packages['basic'].manifest['description'] == 'overridden package'
    assert packages.packages['basic'].priority == 5
    assert json.loads(packages.manifests) == {
        'basic': {
            'description': 'overridden package',
            'requires': {'cockpit': '42'},
            'priority': 5,
        }
    }