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