| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 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 |