'Should ignore error if file does not exist.'

def test_ignores_file_not_exist_error(self):

    set_pidlockfile_scenario(self, 'not-exist')
    pidfile_path = self.scenario['path']
    mock_error = OSError(errno.ENOENT, 'Not    there', pidfile_path)
    os.remove.mock_raises = mock_error
    expect_mock_output = ('                                                Called    os.remove(%(pidfile_path)r)\n                                                ' % vars())
    pidlockfile.remove_existing_pidfile(pidfile_path)
    scaffold.mock_restore()
    self.failUnlessMockCheckerMatch(expect_mock_output)
