コード例 #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"'
     )
コード例 #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"'
     )
コード例 #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"'
     )
コード例 #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"'
     )
コード例 #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"'
     )
コード例 #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"'
     )
コード例 #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"')
コード例 #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"')
コード例 #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"')