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

test_checks   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_is_cce_valid() 0 11 1
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