Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def description(self, conjugate=False):
     return "%s a length that %s" % (
         to_have(conjugate), self.matcher.description(conjugate=True))
Exemplo n.º 3
0
 def description(self, conjugate=False):
     return "%s only values %s" % (to_have(conjugate),
                                   serialize_values(self.expected))
Exemplo n.º 4
0
 def short_description(self, conjugate=False):
     return "%s an item whose value %s" % (to_have(conjugate),
                                           self.expected.short_description(
                                               conjugate=True))