def test_for_long_string_with_bad(self): string = "bad to the bone" self.assertTrue(has_bad(string))
def test_for_bad_at_index_1(self): string = "sbad" self.assertTrue(has_bad(string))
def test_for_bad_after_index_1(self): string = "sobad" self.assertFalse(has_bad(string))
def test_for_bad(self): string = "bad" self.assertTrue(has_bad(string))
def test_for_single_letter(self): string = "b" self.assertFalse(has_bad(string))
def test_for_empty_string(self): string = "" self.assertFalse(has_bad(string))