3 À<×e+ã@sTddlZddlZddlmZddlmZddlmZej j ƒZ Gdd„dej ƒZ dS)éNé)Úbase)Úcommands)ÚInvalidProfileExceptioncs,eZdZdZ‡fdd„Z‡fdd„Z‡ZS)Úassertion_non_equalzº Assertion non equal: compares argument 2 with argument 3. If they match it logs text from argument 1 and throws InvalidProfileException. This exception will abort profile loading. cstt|ƒjdddƒdS)Nré)ÚsuperrÚ__init__)Úself)Ú __class__©ú2/usr/lib/python3.6/function_assertion_non_equal.pyr szassertion_non_equal.__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_non_equal.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