def testShouldNotSatisfyIfOneOfMatchersIsNotSatisfied(self): self.assertFalse( and_(contains("foo"), contains("bam")).matches("foobar"))
def testShouldTreatNonMatchersAsEqMatcher(self): self.assertTrue(and_("foo", any_(str)).matches("foo")) self.assertFalse(and_("foo", any_(int)).matches("foo"))
def testShouldSatisfyIfAllMatchersAreSatisfied(self): self.assertTrue( and_(contains("foo"), contains("bar")).matches("foobar"))