MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / require_version_min

Method require_version_min

test/__init__.py:493–499  ·  view source on GitHub ↗

Run a test only if the server version is at least ``version``.

(self, *ver)

Source from the content-addressed store, hash-verified

491 )
492
493 def require_version_min(self, *ver):
494 """Run a test only if the server version is at least ``version``."""
495 other_version = Version(*ver)
496 return self._require(
497 lambda: self.version >= other_version,
498 "Server version must be at least %s" % str(other_version),
499 )
500
501 def require_version_max(self, *ver):
502 """Run a test only if the server version is at most ``version``."""

Callers 1

Calls 2

_requireMethod · 0.95
VersionClass · 0.90

Tested by

no test coverage detected