

def _test_keepalived_spawns_conflicting_pid(self, process, pid_file):
    spawn_process = helpers.SleepyProcessFixture()
    process.useFixture(spawn_process)
    with open(pid_file, 'w') as f_pid_file:
        f_pid_file.write(('%s' % spawn_process.pid))
    self._spawn_keepalived(self.manager)

dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/agent/linux/test_keepalived.py KeepalivedManagerTestCase._test_keepalived_spawns_conflicting_pid/VarMisuse@22/39 `self`->`process`