예제 #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'))