

@istest
def installs_necessary_packages_to_provision(self):
    with self.using_stub(AptitudeRole) as aptitude, aptitude.execute_mock():
        self.role.provision()
        aptitude.ensure_package_installed.assert_any_call('apparmor-profiles')
        aptitude.ensure_package_installed.assert_any_call('apparmor-utils')

dataset/ETHPy150Open python-provy/provy/tests/unit/more/debian/security/test_apparmor.py AppArmorRoleTest.installs_necessary_packages_to_provision/VarMisuse@23/38 `self`->`aptitude`