(self, scenario_dict)
| 1063 | self.client[db].create_collection(coll) |
| 1064 | |
| 1065 | def setFailPoint(self, scenario_dict): |
| 1066 | fail_point = scenario_dict.get("failPoint") |
| 1067 | if fail_point is None: |
| 1068 | return |
| 1069 | elif not client_context.test_commands_enabled: |
| 1070 | self.skipTest("Test commands must be enabled") |
| 1071 | |
| 1072 | fail_cmd = SON([("configureFailPoint", "failCommand")]) |
| 1073 | fail_cmd.update(fail_point) |
| 1074 | client_context.client.admin.command(fail_cmd) |
| 1075 | self.addCleanup( |
| 1076 | client_context.client.admin.command, |
| 1077 | "configureFailPoint", |
| 1078 | fail_cmd["configureFailPoint"], |
| 1079 | mode="off", |
| 1080 | ) |
| 1081 | |
| 1082 | def assert_list_contents_are_subset(self, superlist, sublist): |
| 1083 | """Check that each element in sublist is a subset of the corresponding |
nothing calls this directly
no test coverage detected