| Conditions | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import sys |
||
| 14 | @staticmethod |
||
| 15 | def test_MRN(): |
||
| 16 | string = 1234567 |
||
| 17 | assert DICOM_validate.MRN(string) |
||
| 18 | |||
| 19 | string = "1234567" |
||
| 20 | assert DICOM_validate.MRN(string) |
||
| 21 | |||
| 22 | string = "12345678" |
||
| 23 | assert not DICOM_validate.MRN(string) |
||
| 24 | |||
| 25 | string = 12345678 |
||
| 26 | assert not DICOM_validate.MRN(string) |
||
| 27 | |||
| 28 | string = "123456" |
||
| 29 | assert DICOM_validate.MRN(string) |
||
| 30 | |||
| 31 | string = 123456 |
||
| 32 | assert DICOM_validate.MRN(string) |
||
| 33 | |||
| 44 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.