示例#1
0
 def test_keyword_set_present4(self):
     self.assertTrue(
         keyword_set_present([["bye"], ["world"]], "Hello World!"), "Keyword present!"
     )
示例#2
0
 def test_keyword_sets_present1(self):
     self.assertTrue(
         keyword_set_present([[""]], "Hello World!"),
         "Expecting true when no keyword set was supplied.",
     )
示例#3
0
 def test_keyword_set_present3(self):
     self.assertTrue(
         keyword_set_present([["hello", "world"]], "Hello World!"), "Keyword set present!"
     )
示例#4
0
 def test_keyword_set_present5(self):
     self.assertFalse(
         keyword_set_present([["hello", "nntin"]], "Hello World!"),
         "Keyword set not present")