def test_AAcodeBBcoleCCccorfDD_returns_2(self): actual = count_code("AAcodeBBcoleCCccorfDD") expected = 2 self.assertEqual( actual, expected, 'Expected calling count_code() with "AAcodeBBcoleCCccorfDD" to return "2"' )
def test_coAcodeBcoleccoreDD_returns_3(self): actual = count_code("coAcodeBcoleccoreDD") expected = 3 self.assertEqual( actual, expected, 'Expected calling count_code() with "coAcodeBcoleccoreDD" to return "3"' )
def test_blank_string_returns_0(self): actual = count_code("") expected = 0 self.assertEqual( actual, expected, 'Expected calling count_code() with "" to return "0"')
def test_ode_returns_0(self): actual = count_code("ode") expected = 0 self.assertEqual( actual, expected, 'Expected calling count_code() with "ode" to return "0"')
def test_code_returns_1(self): actual = count_code("code") expected = 1 self.assertEqual( actual, expected, 'Expected calling count_code() with "code" to return "1"')
def test_xxcozeyycop_returns_1(self): actual = count_code("xxcozeyycop") expected = 1 self.assertEqual( actual, expected, 'Expected calling count_code() with "xxcozeyycop" to return "1"')
def test_cozexxcope_returns_2(self): actual = count_code("cozexxcope") expected = 2 self.assertEqual( actual, expected, 'Expected calling count_code() with "cozexxcope" to return "2"')