(self)
| 928 | secondary: MongoClient |
| 929 | |
| 930 | def setUp(self): |
| 931 | super().setUp() |
| 932 | self.w = client_context.w |
| 933 | self.secondary = None |
| 934 | if self.w is not None and self.w > 1: |
| 935 | for member in (client_context.hello)["hosts"]: |
| 936 | if member != (client_context.hello)["primary"]: |
| 937 | self.secondary = self.single_client(*partition_node(member)) |
| 938 | break |
| 939 | |
| 940 | def tearDown(self): |
| 941 | if self.secondary: |
nothing calls this directly
no test coverage detected