예제 #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
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
def test_get_extract_func():
    assert get_extract_func(tc.TAR_FILE) is extract_tar_gz