コード例 #1
0
 def test_positive_match_end(self):
     self.assertTrue(is_found_in('ence.', 'This is a sentence.'))
コード例 #2
0
 def test_negative_match_single_word(self):
     self.assertFalse(is_found_in('Amazon', 'Shoprunner'))
コード例 #3
0
 def test_negative_match_case(self):
     self.assertFalse(is_found_in('this', 'This is a sentence.'))
コード例 #4
0
 def test_negative_match_num(self):
     self.assertFalse(is_found_in('1234', 'This is a sentence.'))
コード例 #5
0
 def test_positive_match_single_word(self):
     self.assertTrue(is_found_in('Shop', 'Shoprunner'))