Exemplo n.º 1
0
 def test_bo_ya_returns_boyayabo(self):
     actual = make_abba("Bo", "Ya")
     expected = "BoYaYaBo"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "Bo" and "Ya" to return "BoYaYaBo"'
     )
Exemplo n.º 2
0
 def test_ya_ya_returns_yayayaya(self):
     actual = make_abba("Ya", "Ya")
     expected = "YaYaYaYa"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "Ya" and "Ya" to return "YaYaYaYa"'
     )
Exemplo n.º 3
0
 def test_hi_bye_returns_hibyebyehi(self):
     actual = make_abba("Hi", "Bye")
     expected = "HiByeByeHi"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "Hi" and "Bye" to return "HiByeByeHi"'
     )
Exemplo n.º 4
0
 def test_aaa_bbb_returns_aaabbbbbbaaa(self):
     actual = make_abba("aaa", "bbb")
     expected = "aaabbbbbbaaa"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "aaa" and "bbb" to return "aaabbbbbbaaa"'
     )
Exemplo n.º 5
0
 def test_what_up_returns_whatupupwhat(self):
     actual = make_abba("What", "Up")
     expected = "WhatUpUpWhat"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "What" and "Up" to return "WhatUpUpWhat"'
     )
Exemplo n.º 6
0
 def test_yo_alice_returns_yoalicealiceyo(self):
     actual = make_abba("Yo", "Alice")
     expected = "YoAliceAliceYo"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "Yo" and "Alice" to return "YoAliceAliceYo"'
     )
Exemplo n.º 7
0
 def test_blank_y_returns_yy(self):
     actual = make_abba("", "y")
     expected = "yy"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "" and "y" to return "yy"')
Exemplo n.º 8
0
 def test_x_blank_returns_xx(self):
     actual = make_abba("x", "")
     expected = "xx"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "x" and "" to return "xx"')
Exemplo n.º 9
0
 def test_x_y_returns_xyyx(self):
     actual = make_abba("x", "y")
     expected = "xyyx"
     self.assertEqual(
         actual, expected,
         'Expected calling make_abba() with "x" and "y" to return "xyyx"')