def test_count_code6(self): self.assertEqual(count_code('coe'), 0)
def test_count_code5(self): self.assertEqual(count_code('abcxyz'), 0)
def test_count_code4(self): self.assertEqual(count_code('AAcodeBBcoleCCccoreDD'), 3)
def test_count_code3(self): self.assertEqual(count_code('xxcozeyycop'), 1)
def test_count_code2(self): self.assertEqual(count_code('cozexxcope'), 2)
def test_count_code1(self): self.assertEqual(count_code('aaacodebbb'), 1)