

@istest
def creates_a_profile_with_read_permissions(self):
    with self.execute_mock() as execute:
        self.role.create('/some/bin', read=['/var/log/somebin.log', '/srv/somebin/'])
        execute.assert_called_with('aa-easyprof -r /var/log/somebin.log -r /srv/somebin/ /some/bin', stdout=False, sudo=True)

dataset/ETHPy150Open python-provy/provy/tests/unit/more/debian/security/test_apparmor.py AppArmorRoleTest.creates_a_profile_with_read_permissions/original