def testShouldNotSatisfyIfAllOfMatchersAreNotSatisfied(self): self.assertFalse( or_(contains("bam"), contains("baz")).matches("foobar"))
def testShouldTreatNonMatchersAsEqMatcher(self): self.assertTrue(or_("foo", "bar").matches("foo")) self.assertFalse(or_("foo", "bar").matches("bam"))
def testShouldSatisfyIfAnyOfMatchersIsSatisfied(self): self.assertTrue( or_(contains("foo"), contains("bam")).matches("foobar"))