'Should request close of file descriptor.'

def test_requests_file_descriptor_close(self):

    fd = self.test_fd
    expect_mock_output = ('                                                Called    os.close(%(fd)r)\n                                                ' % vars())
    daemon.daemon.close_file_descriptor_if_open(fd)
    self.failUnlessMockCheckerMatch(expect_mock_output)
