'Should return True if `stdin` is a socket.'

def test_returns_true_if_stdin_is_socket(self):

    test_fd = 23
    getsockopt = self.mock_socket.getsockopt
    getsockopt.mock_raises = None
    getsockopt.mock_returns_func = self.mock_socket_getsockopt_func
    expect_result = True
    result = daemon.daemon.is_socket(test_fd)
    self.failUnlessIs(expect_result, result)
