Example #1
0
 def test_for_long_string_with_bad(self):
     string = "bad to the bone"
     self.assertTrue(has_bad(string))
Example #2
0
 def test_for_bad_at_index_1(self):
     string = "sbad"
     self.assertTrue(has_bad(string))
Example #3
0
 def test_for_bad_after_index_1(self):
     string = "sobad"
     self.assertFalse(has_bad(string))
Example #4
0
 def test_for_bad(self):
     string = "bad"
     self.assertTrue(has_bad(string))
Example #5
0
 def test_for_single_letter(self):
     string = "b"
     self.assertFalse(has_bad(string))
Example #6
0
 def test_for_empty_string(self):
     string = ""
     self.assertFalse(has_bad(string))