def test_cmd_exists(): assert cmd_exists('dummy_dummy') == False assert cmd_exists('ls') == True
def __init__(self, filename): self.filename = filename if cmd_exists("zcat"): self.use_zcat = True else: self.use_zcat = False