Esempio n. 1
0
 def testShouldNotSatisfyIfOneOfMatchersIsNotSatisfied(self):
     self.assertFalse(
         and_(contains("foo"), contains("bam")).matches("foobar"))
Esempio n. 2
0
 def testShouldTreatNonMatchersAsEqMatcher(self):
     self.assertTrue(and_("foo", any_(str)).matches("foo"))
     self.assertFalse(and_("foo", any_(int)).matches("foo"))
Esempio n. 3
0
 def testShouldSatisfyIfAllMatchersAreSatisfied(self):
     self.assertTrue(
         and_(contains("foo"), contains("bar")).matches("foobar"))