def test_find_arc_name_fail(): with pytest.raises(PakitError): find_arc_name("archive.not.an.arc")
def test_find_arc_name(): assert find_arc_name(tc.TAR)[0] == "tmux-2.0.tar.gz"