#NEWLINE# def assertReadFromAll( testcase , client , members , * args , **kwargs ) : #NEWLINE# #INDENT# 'Check that a query with the given mode and tag_sets reads from all\n    members in a set, and only members in that set.\n\n    :Parameters:\n      - `testcase`: A unittest.TestCase\n      - `client`: A MongoClient\n      - `members`: Sequence of host:port expected to be used\n      - `mode`: A ReadPreference\n      - `tag_sets` (optional): List of dicts of tags for data-center-aware reads\n    ' #NEWLINE# members = set ( members ) #NEWLINE# used = set ( ) #NEWLINE# for _ in range ( 100 ) : #NEWLINE# #INDENT# used . add ( read_from_which_host ( client , * args , ** kwargs ) ) #NEWLINE# #UNINDENT# testcase . assertEqual ( kwargs , used )