Passed
Push — master ( f9ed9c...2417ae )
by Matěj
02:01
created

test_checks.test_is_cce_valid()   A

Complexity

Conditions 1

Size

Total Lines 11
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nop 0
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
1
import pytest
2
3
import ssg.checks
4
5
6
def test_is_cce_valid():
7
    icv = ssg.checks.is_cce_valid
8
    assert icv("CCE-27191-6")
9
    assert icv("CCE-7223-7")
10
11
    assert not icv("not-valid")
12
    assert not icv("1234-5")
13
    assert not icv("12345-6")
14
    assert not icv("TBD")
15
    assert not icv("CCE-TBD")
16
    assert not icv("CCE-abcde-f")
17