def runTest(self): mongo_uri = "mongodb://localhost/test.modforty" wrapper = mongodb_input.open(mongo_uri) assert wrapper for result in wrapper: print result for key in result: print result[key] assert result break
def input_stream(stream, size, url, params): from mongodb_input import open mon = open(url) return mon