Пример #1
0
 def pad_left20Test(self):
     hello = "The quick"
     number_of_units_to_pad = 20
     expected = "           The quick"
     actual = StringUtils.pad_left(hello, number_of_units_to_pad)
     self.assertEqual(expected, actual)
Пример #2
0
 def pad_left15Test(self):
     hello = ""
     number_of_units_to_pad = 15
     expected = "               "
     actual = StringUtils.pad_left(hello, number_of_units_to_pad)
     self.assertEqual(expected, actual)