Ejemplo n.º 1
0
 def test_strip_first_suffix_none(self):
     self.assertEquals('abcd', StringTools.strip_first_suffix('abcd', []))
Ejemplo n.º 2
0
 def test_strip_first_suffix_3(self):
     self.assertEquals('', StringTools.strip_first_suffix('', ['a', 'b', 'c', 'd']))
Ejemplo n.º 3
0
 def test_strip_first_suffix_non_fitting(self):
     self.assertEquals('abcd',StringTools.strip_first_suffix('abcd',['e','f','g','h']))
Ejemplo n.º 4
0
 def test_strip_first_suffix_1(self):
     self.assertEquals('abc', StringTools.strip_first_suffix('abcd', ['d', 'c', 'b', 'a']))