def test_naughty(self): self.assertFalse(is_nice2("uurcxstgmygtbstg")) self.assertFalse(is_nice2("ieodomkazucvgmuy"))
def test_nice(self): self.assertTrue(is_nice2("qjhvhtzxzqqjkmpb")) self.assertTrue(is_nice2("xxyxx"))
def test_examples_part_2_naughty(self): self.assertFalse(main.is_nice2('uurcxstgmygtbstg')) self.assertFalse(main.is_nice2('ieodomkazucvgmuy'))
def test_empty_string(self): self.assertFalse(main.is_nice1('')) self.assertFalse(main.is_nice2(''))
def test_examples_part_2_nice(self): self.assertTrue(main.is_nice2('qjhvhtzxzqqjkmpb')) self.assertTrue(main.is_nice2('xxyxx'))