def setUp(self):
fixtures = os.path.join(os.path.dirname(os.path.abspath(__file__)), "<STR_LIT>")<EOL>with open(os.path.join(fixtures, "<STR_LIT>"), "<STR_LIT:r>") as single_json:<EOL><INDENT>self.single_response = json.loads(single_json.read())<EOL><DEDENT>with open(os.path.join(fixtures, "<STR_LIT>"), "<STR_LIT:r>") as batch_json:<EOL><INDENT>self.batch_response = json.loads(batch_json.read())<EOL><DEDENT>with open(os.path.join(fixtures, "<STR_LIT>"), "<STR_LIT:r>") as address_json:<EOL><INDENT>self.address_response = json.loads(address_json.read())<EOL><DEDENT>with open(os.path.join(fixtures, "<STR_LIT>"), "<STR_LIT:r>") as missing_json:<EOL><INDENT>self.missing_results = json.loads(missing_json.read())<EOL><DEDENT>with open(<EOL>os.path.join(fixtures, "<STR_LIT>"), "<STR_LIT:r>"<EOL>) as batch_reverse_json:<EOL><INDENT>self.batch_reverse_response = json.loads(batch_reverse_json.read())<EOL><DEDENT>
Read the test data from JSON files which are modified from actual
service response only for formatting. This makes this file much easier
to read, the data easier to inspect, and ensures that the data matches
what the service actually replies with.