Exemple #1
0
 def test_no_modific(self):
     assert 'testa' == remove_suffix('testa', 'test')
Exemple #2
0
 def test_string_suffix(self):
     assert '' == remove_suffix('test', 'test')
Exemple #3
0
 def test_just_suffix(self):
     assert 'test' == remove_suffix('testing', 'ing')
Exemple #4
0
 def test_empty_string(self):
     assert '' == remove_suffix('', 'suffix')
Exemple #5
0
 def test_emptystr_unmodif(self):
     assert 'test' == remove_suffix('test', '')
 def test_no_modific(self):
     assert 'testa' == remove_suffix('testa', 'test')
 def test_just_suffix(self):
     assert 'test' == remove_suffix('testing', 'ing')
 def test_string_suffix(self):
     assert '' == remove_suffix('test', 'test')
 def test_emptystr_unmodif(self):
     assert 'test' == remove_suffix('test', '')
Exemple #10
0
 def test_empty_string(self):
     assert '' == remove_suffix('', 'suffix')