eddlZddlmZmZddlmZddlmZddlm Z dZ dZ dZ Gd d eeZ d ed e efd Zd ed e efdZd ed e efdZd ed e efdZy)N)AnyCallable) BaseMatcher) Description)MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtcReZdZdedeeegefdeddfdZdedefdZd e ddfd Z y) OrderingComparisonvaluecomparison_functioncomparison_descriptionreturnNc.||_||_||_y)N)r r r )selfr r r s M/usr/lib/python3/dist-packages/hamcrest/library/number/ordering_comparison.py__init__zOrderingComparison.__init__s  #6 &<#itemcZ |j||jS#t$rYywxYw)NF)r r TypeError)rrs r_matcheszOrderingComparison._matchess0 ++D$**= =  s  ** descriptionc|jdj|jjdj|jy)Nza value  ) append_textr append_description_ofr )rrs r describe_tozOrderingComparison.describe_tos> +778S8ST``    +r) __name__ __module__ __qualname__rrboolstrrrrrrrr r sa==&sCj$&67=!$ =  =ST ,{,t,rr r r c8t|tjdS)zgMatches if object is greater than a given value. :param value: The value to compare against. z greater than)r operatorgtr s r greater_thanr'$s eX[[. AArc8t|tjdS)zsMatches if object is greater than or equal to a given value. :param value: The value to compare against. zgreater than or equal to)r r$ger&s rgreater_than_or_equal_tor*-s eX[[2L MMrc8t|tjdS)zdMatches if object is less than a given value. :param value: The value to compare against. z less than)r r$ltr&s r less_thanr-6s eX[[+ >>rc8t|tjdS)zpMatches if object is less than or equal to a given value. :param value: The value to compare against. zless than or equal to)r r$ler&s rless_than_or_equal_tor0?s eX[[2I JJr)r$typingrrhamcrest.core.base_matcherrhamcrest.core.descriptionrhamcrest.core.matcherr __author__ __copyright__ __license__r r'r*r-r0r"rrr8s 21)  - $ ,S),.BB BNCNGCLN?S?WS\?KKKr