

@istest
def doesnt_restart_on_cleanup_if_doesnt_need_to_be_restarted(self):
    with patch('provy.more.debian.ApacheRole.restart') as restart:
        self.role.cleanup()
        self.assertFalse(restart.called)

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