def short_description(self, conjugate=False): ret = '%s entry %s' % (to_have(conjugate), self.key_matcher.description()) if self.value_matcher: ret += " that " + self.value_matcher.short_description( conjugate=True) return ret
def description(self, conjugate=False): return "%s a length that %s" % ( to_have(conjugate), self.matcher.description(conjugate=True))
def description(self, conjugate=False): return "%s only values %s" % (to_have(conjugate), serialize_values(self.expected))
def short_description(self, conjugate=False): return "%s an item whose value %s" % (to_have(conjugate), self.expected.short_description( conjugate=True))