コード例 #1
0
 def test_no_modific(self):
     assert 'testa' == remove_suffix('testa', 'test')
コード例 #2
0
 def test_string_suffix(self):
     assert '' == remove_suffix('test', 'test')
コード例 #3
0
 def test_just_suffix(self):
     assert 'test' == remove_suffix('testing', 'ing')
コード例 #4
0
 def test_empty_string(self):
     assert '' == remove_suffix('', 'suffix')
コード例 #5
0
 def test_emptystr_unmodif(self):
     assert 'test' == remove_suffix('test', '')
コード例 #6
0
ファイル: test_hookutils.py プロジェクト: BillFly/pyinstaller
 def test_no_modific(self):
     assert 'testa' == remove_suffix('testa', 'test')
コード例 #7
0
ファイル: test_hookutils.py プロジェクト: BillFly/pyinstaller
 def test_just_suffix(self):
     assert 'test' == remove_suffix('testing', 'ing')
コード例 #8
0
ファイル: test_hookutils.py プロジェクト: BillFly/pyinstaller
 def test_string_suffix(self):
     assert '' == remove_suffix('test', 'test')
コード例 #9
0
ファイル: test_hookutils.py プロジェクト: BillFly/pyinstaller
 def test_emptystr_unmodif(self):
     assert 'test' == remove_suffix('test', '')
コード例 #10
0
ファイル: test_hookutils.py プロジェクト: BillFly/pyinstaller
 def test_empty_string(self):
     assert '' == remove_suffix('', 'suffix')