human
Complete this python program:
def insert_data(test_case, host, port):
assistant
#Here is the Python program you requested.

    """Insert some data into the database.
    :param TestCase test_case: A test.
    :param host: Host to connect to.
    :param port: Port to connect to.
    :return: ``Deferred`` that fires when data has been inserted.
    """
    d = get_mongo_client(host, port)
    def got_client(client):
        database = client.example
        database.posts.insert({u'the    data': u'it    moves'})
    d.addCallback(got_client)
    return d