コード例 #1
0
 def testShouldNotSatisfyIfOneOfMatchersIsNotSatisfied(self):
     self.assertFalse(
         and_(contains("foo"), contains("bam")).matches("foobar"))
コード例 #2
0
 def testShouldTreatNonMatchersAsEqMatcher(self):
     self.assertTrue(and_("foo", any_(str)).matches("foo"))
     self.assertFalse(and_("foo", any_(int)).matches("foo"))
コード例 #3
0
 def testShouldSatisfyIfAllMatchersAreSatisfied(self):
     self.assertTrue(
         and_(contains("foo"), contains("bar")).matches("foobar"))