Completed
Push — master ( 8f3e72...b93e94 )
by Bjorn
59s
created

tests.test_missing_executable()   A

Complexity

Conditions 2

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 2
dl 0
loc 2
rs 10
1
# -*- coding: utf-8 -*-
2
3
from dkfileutils import which
4
5
6
def test_which():
7
    # find exists on both win an *nix
8
    assert len(list(which.which('find'))) > 0
9
10
11
def test_get_executable():
12
    assert which.get_executable('find')
13
14
15
def test_missing_executable():
16
    assert not which.get_executable('chewbaccascousin')
17