human
I wrote the below code

    d = get_mongo_client(host, port)
    def got_client(client):
        database = client.example
        data = database.posts.find_one()
        test_case.assertEqual(data[u'the    data'], u'it    moves')
    d.addCallback(got_client)
    return d

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def assert_inserted(test_case, host, port):