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