'Should close all open files, excluding `files_preserve`.'

def test_closes_open_files(self):

    instance = self.test_instance
    expect_exclude = self.test_files_preserve_fds
    expect_mock_output = ('                                                ...\n                                                Called    daemon.daemon.close_all_open_files(\n                                                                exclude=%(expect_exclude)r)\n                                                ...\n                                                ' % vars())
    instance.open()
    self.failUnlessMockCheckerMatch(expect_mock_output)
