'Should not request removal of PID file if we are not locking.'

def test_does_not_remove_existing_pidfile_if_not_my_lock(self):

    set_pidlockfile_scenario(self, 'exist-other-pid-locked')
    instance = self.test_instance
    expect_error = lockfile.NotMyLock
    unwanted_mock_output = '...Called    pidlockfile.remove_existing_pidfile...'
    self.failUnlessRaises(expect_error, instance.release)
    self.failIfMockCheckerMatch(unwanted_mock_output)
