3 À<×eÿã@sTddlZddlZddlmZddlmZddlmZej j ƒZ Gdd„dej ƒZ dS)éNé)Úbase)Úcommands)ÚInvalidProfileExceptioncs,eZdZdZ‡fdd„Z‡fdd„Z‡ZS)Ú assertionz¶ Assertion: compares argument 2 with argument 3. If they don't match it logs text from argument 1 and throws InvalidProfileException. This exception will abort profile loading. cstt|ƒjdddƒdS)Nré)ÚsuperrÚ__init__)Úself)Ú __class__©ú(/usr/lib/python3.6/function_assertion.pyr szassertion.__init__csXtt|ƒj|ƒsdS|d|dkrTtjd|d|d|dfƒtd|dƒ‚dS)Nréz#assertion '%s' failed: '%s' != '%s'rzAssertion '%s' failed.)rrÚexecuteÚlogÚerrorr)r Úargs)r r r rs  zassertion.execute)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rÚ __classcell__r r )r r r s r)ÚosZ tuned.logsZtunedÚrZtuned.utils.commandsrZtuned.profiles.exceptionsrZlogsÚgetrZFunctionrr r r r Ús