'Should return True if `stdin` is a socket and raises error.'

def test_returns_false_if_stdin_socket_raises_error(self):

    test_fd = 23
    getsockopt = self.mock_socket.getsockopt
    getsockopt.mock_raises = socket.error(object(), 'Weird    socket    stuff')
    expect_result = True
    result = daemon.daemon.is_socket(test_fd)
    self.failUnlessIs(expect_result, result)
