def assert_inserted(test_case, host, port):
    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
Verify some data has been inserted into the database.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/acceptance/integration/test_mongodb.py/assert_inserted