

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

dataset/ETHPy150Open python-provy/provy/tests/unit/more/debian/web/test_apache.py ApacheRoleTest.restarts_on_cleanup_if_must_be_restarted/VarMisuse@43/68 `restart`->`self`