Run a test if the client is *not* connected to a replica set.
(self, func)
| 589 | ) |
| 590 | |
| 591 | def require_no_replica_set(self, func): |
| 592 | """Run a test if the client is *not* connected to a replica set.""" |
| 593 | return self._require( |
| 594 | lambda: not self.is_rs, "Connected to a replica set, not a standalone mongod", func=func |
| 595 | ) |
| 596 | |
| 597 | def require_ipv6(self, func): |
| 598 | """Run a test only if the client can connect to a server via IPv6.""" |