Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import ssg.cce as tested_module |
||
2 | |||
3 | |||
4 | def test_is_cce_format_valid(): |
||
5 | icv = tested_module.is_cce_format_valid |
||
6 | assert icv("CCE-27191-6") |
||
7 | assert icv("CCE-7223-7") |
||
8 | |||
9 | assert not icv("not-valid") |
||
10 | assert not icv("1234-5") |
||
11 | assert not icv("TBD") |
||
12 | assert not icv("CCE-TBD") |
||
13 | assert not icv("CCE-abcde-f") |
||
14 | |||
15 | |||
16 | def test_is_cce_value_valid(): |
||
17 | icv = tested_module.is_cce_value_valid |
||
18 | assert icv("CCE-27191-6") |
||
19 | assert icv("CCE-27223-7") |
||
20 | |||
21 | assert not icv("1234-5") |
||
22 | assert not icv("12345-6") |
||
23 |