

@istest
def can_be_restarted(self):
    with self.execute_mock() as execute:
        self.role.restart()
        execute.assert_called_with('service apache2 restart', sudo=True)

dataset/ETHPy150Open python-provy/provy/tests/unit/more/debian/web/test_apache.py ApacheRoleTest.can_be_restarted/original