Exemplo n.º 1
0
 def testShouldNotSatisfyIfAllOfMatchersAreNotSatisfied(self):
     self.assertFalse(
         or_(contains("bam"), contains("baz")).matches("foobar"))
Exemplo n.º 2
0
 def testShouldTreatNonMatchersAsEqMatcher(self):
     self.assertTrue(or_("foo", "bar").matches("foo"))
     self.assertFalse(or_("foo", "bar").matches("bam"))
Exemplo n.º 3
0
 def testShouldSatisfyIfAnyOfMatchersIsSatisfied(self):
     self.assertTrue(
         or_(contains("foo"), contains("bam")).matches("foobar"))