Source code for expects.matchers.built_in.be_below_or_equal
# -*- coding: utf-8 -*
from .. import Matcher
class be_below_or_equal(Matcher):
def __init__(self, expected):
self._expected = expected
def _match(self, subject):
return subject <= self._expected, []