Exemple #1
0
 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"'
     )
Exemple #2
0
 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"'
     )
Exemple #3
0
 def test_blank_string_returns_0(self):
     actual = count_code("")
     expected = 0
     self.assertEqual(
         actual, expected,
         'Expected calling count_code() with "" to return "0"')
Exemple #4
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"')
Exemple #5
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"')
Exemple #6
0
 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"')
Exemple #7
0
 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"')