Run a test only if the server is running with auth enabled.
(self, func)
| 533 | ) |
| 534 | |
| 535 | def require_auth(self, func): |
| 536 | """Run a test only if the server is running with auth enabled.""" |
| 537 | return self._require( |
| 538 | lambda: self.auth_enabled, "Authentication is not enabled on the server", func=func |
| 539 | ) |
| 540 | |
| 541 | def require_no_auth(self, func): |
| 542 | """Run a test only if the server is running without auth enabled.""" |