def setUp():
mapping = {<EOL>u'<STR_LIT>': {<EOL>'<STR_LIT>': <NUM_LIT:1.0>,<EOL>'<STR_LIT:index>': '<STR_LIT>',<EOL>'<STR_LIT:store>': '<STR_LIT:yes>',<EOL>'<STR_LIT:type>': u'<STR_LIT:string>',<EOL>"<STR_LIT>": "<STR_LIT>"},<EOL>u'<STR_LIT:name>': {<EOL>'<STR_LIT>': <NUM_LIT:1.0>,<EOL>'<STR_LIT:index>': '<STR_LIT>',<EOL>'<STR_LIT:store>': '<STR_LIT:yes>',<EOL>'<STR_LIT:type>': u'<STR_LIT:string>',<EOL>"<STR_LIT>": "<STR_LIT>"},<EOL>u'<STR_LIT:title>': {<EOL>'<STR_LIT>': <NUM_LIT:1.0>,<EOL>'<STR_LIT:index>': '<STR_LIT>',<EOL>'<STR_LIT:store>': '<STR_LIT:yes>',<EOL>'<STR_LIT:type>': u'<STR_LIT:string>',<EOL>"<STR_LIT>": "<STR_LIT>"},<EOL>u'<STR_LIT>': {<EOL>'<STR_LIT:store>': '<STR_LIT:yes>',<EOL>'<STR_LIT:type>': u'<STR_LIT>'},<EOL>u'<STR_LIT>': {<EOL>'<STR_LIT:store>': '<STR_LIT:yes>',<EOL>'<STR_LIT:type>': u'<STR_LIT>'},<EOL>u'<STR_LIT>': {<EOL>'<STR_LIT>': <NUM_LIT:1.0>,<EOL>'<STR_LIT:index>': '<STR_LIT>',<EOL>'<STR_LIT:store>': '<STR_LIT:yes>',<EOL>'<STR_LIT:type>': u'<STR_LIT:string>'}}<EOL>conn = get_conn(log_curl=True)<EOL>conn.indices.delete_index_if_exists("<STR_LIT>")<EOL>conn.indices.create_index("<STR_LIT>")<EOL>conn.indices.put_mapping("<STR_LIT>", {'<STR_LIT>': mapping}, ["<STR_LIT>"])<EOL>conn.index({"<STR_LIT:name>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>", "<STR_LIT>": <NUM_LIT:1>,<EOL>"<STR_LIT>": [<NUM_LIT:1.0>, <NUM_LIT>, <NUM_LIT>]}, "<STR_LIT>", "<STR_LIT>", <NUM_LIT:1>)<EOL>conn.index({"<STR_LIT:name>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>", "<STR_LIT>": <NUM_LIT:2>,<EOL>"<STR_LIT>": [<NUM_LIT:0.1>, <NUM_LIT>, <NUM_LIT>]}, "<STR_LIT>", "<STR_LIT>", <NUM_LIT:2>)<EOL>conn.indices.refresh(["<STR_LIT>"])<EOL>
Package level setup.

    For tests which don't modify the index, we don't want to have the overhead
    of setting up a test index, so we just set up test-pindex once, and use it
    for all tests.