| 444 | |
| 445 | |
| 446 | class ConnectedTestCase(ClusterTestCase): |
| 447 | |
| 448 | def setUp(self): |
| 449 | super().setUp() |
| 450 | |
| 451 | # Extract options set up with `with_connection_options`. |
| 452 | test_func = getattr(self, self._testMethodName).__func__ |
| 453 | opts = getattr(test_func, '__connect_options__', {}) |
| 454 | self.con = self.loop.run_until_complete(self.connect(**opts)) |
| 455 | self.server_version = self.con.get_server_version() |
| 456 | |
| 457 | def tearDown(self): |
| 458 | try: |
| 459 | self.loop.run_until_complete(self.con.close()) |
| 460 | self.con = None |
| 461 | finally: |
| 462 | super().tearDown() |
| 463 | |
| 464 | |
| 465 | class HotStandbyTestCase(ClusterTestCase): |
nothing calls this directly
no outgoing calls
no test coverage detected