def setUp(self):
def dummy_iterator(strm):<EOL><INDENT>for line in strm:<EOL><INDENT>line = line.strip()<EOL>if line == "<STR_LIT>":<EOL><INDENT>continue<EOL><DEDENT>parts = line.split()<EOL>yield (int(parts[<NUM_LIT:0>]), parts[<NUM_LIT:1>:])<EOL><DEDENT><DEDENT>self.r_iter = dummy_iterator<EOL>def dummy_hash(item_tuple):<EOL><INDENT>return int(item_tuple[<NUM_LIT:0>])<EOL><DEDENT>self.r_hash = dummy_hash<EOL>self.test_case_0 = "<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>" +"<STR_LIT>"<EOL>
Test indexing a simple file format.

Records in the indexed files have the following structure: 3 A B C D E
Here, all data about each record is on a single line -- white-space
separated. The first item on the data line is a unique ID for the element.