(self)
| 228 | |
| 229 | class BsonEncodingTest(MicroTest): |
| 230 | def setUp(self): |
| 231 | super().setUp() |
| 232 | # Location of test data. |
| 233 | self.document = json_util.loads(self.file_data) |
| 234 | self.data_size = len(encode(self.document)) * NUM_DOCS |
| 235 | |
| 236 | def do_task(self): |
| 237 | for _ in range(NUM_DOCS): |