Example #1
0
 def test_negative(self):
     s = "The quick brown fox"
     f = contains_("sheep")
     self.assertFalse(f(s))
Example #2
0
 def test_negative(self):
     s = "The quick brown fox"
     f = contains_("sheep")
     self.assertFalse(f(s))
Example #3
0
 def test_positive(self):
     s = "The quick brown fox"
     f = contains_("fox")
     self.assertTrue(f(s))
Example #4
0
 def test_positive(self):
     s = "The quick brown fox"
     f = contains_("fox")
     self.assertTrue(f(s))