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