Example #1
0
def test_cmd_exists():
    assert cmd_exists('dummy_dummy') == False
    assert cmd_exists('ls') == True
Example #2
0
 def __init__(self, filename):
     self.filename = filename
     if cmd_exists("zcat"):
         self.use_zcat = True
     else:
         self.use_zcat = False
Example #3
0
def test_cmd_exists():
    assert cmd_exists('dummy_dummy') == False
    assert cmd_exists('ls') == True
Example #4
0
 def __init__(self, filename):
     self.filename = filename
     if cmd_exists("zcat"):
         self.use_zcat = True
     else:
         self.use_zcat = False