예제 #1
0
 def test_abcXYZ_and_abcDEF_returns_false(self):
     actual = end_other("abcXYZ", "abcDEF")
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling end_other() with "abcXYZ" and "abcDEF" to return "False"'
     )
예제 #2
0
 def test_Z_and_12xz_returns_true(self):
     actual = end_other("Z", "12xz")
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling end_other() with "Z" and "12xz" to return "True"'
     )
예제 #3
0
 def test_yz_and_12xz_returns_false(self):
     actual = end_other("yz", "12xz")
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling end_other() with "yz" and "12xz" to return "False"'
     )
예제 #4
0
 def test_abc_and_abc_returns_true(self):
     actual = end_other("abc", "abc")
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling end_other() with "abc" and "abc" to return "True"'
     )
예제 #5
0
 def test_Hiabcx_and_bc_returns_false(self):
     actual = end_other("Hiabcx", "bc")
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling end_other() with "Hiabcx" and "bc" to return "False"'
     )
예제 #6
0
 def test_AbC_and_HiaBc_returns_true(self):
     actual = end_other("AbC", "HiaBc")
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling end_other() with "AbC" and "HiaBc" to return "True"'
     )