コード例 #1
0
ファイル: test_shell.py プロジェクト: kostyll/pakit
def test_get_extract_func_not_found():
    with pytest.raises(PakitError):
        get_extract_func("tar.gzzz")
コード例 #2
0
ファイル: test_shell.py プロジェクト: kostyll/pakit
def test_get_extract_func():
    assert get_extract_func("tar.gz") is extract_tar_gz
コード例 #3
0
ファイル: test_shell.py プロジェクト: starcraftman/pakit
def test_get_extract_func_not_found():
    with pytest.raises(PakitError):
        get_extract_func(tc.TEST_CONFIG)
コード例 #4
0
ファイル: test_shell.py プロジェクト: kostyll/pakit
 def __test_ext(self, ext):
     extract = get_extract_func(ext)
     extract(self.arc_file(ext), self.target)
     assert os.listdir(os.path.dirname(self.expect_file)) == ["example.txt"]
コード例 #5
0
ファイル: test_shell.py プロジェクト: starcraftman/pakit
def test_get_extract_func():
    assert get_extract_func(tc.TAR_FILE) is extract_tar_gz