コード例 #1
0
 def test_trim_long_word(self):
     self.assertEqual("", create_data.trim("Matthew", 2))
コード例 #2
0
 def test_trim_do_not_split_word(self):
     self.assertEqual("Matthew ", create_data.trim("Matthew Henderson", 9))
コード例 #3
0
 def test_trim_string_short(self):
     self.assertEqual("Matthew", create_data.trim("Matthew", 9))
コード例 #4
0
 def test_trim(self):
     self.assertEqual("Matthew", create_data.trim("Matthew Henderson", 7))