| Conditions | 3 |
| Total Lines | 16 |
| Lines | 16 |
| Ratio | 100 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python3 |
||
| 29 | def test_not_valid(self): |
||
| 30 | """Test field formats that are not valid ElementNum elements.""" |
||
| 31 | |||
| 32 | test_fields = [ |
||
| 33 | ('a', '4x'), # 4 pad bytes |
||
| 34 | ('b', 'z'), # invalid |
||
| 35 | ('c', '1'), # invalid |
||
| 36 | ('d', '9S'), # invalid (must be lowercase) |
||
| 37 | ('e', '/'), # invalid |
||
| 38 | ('f', '?'), # invalid |
||
| 39 | ] |
||
| 40 | |||
| 41 | for field in test_fields: |
||
| 42 | with self.subTest(field): # pylint: disable=no-member |
||
| 43 | out = ElementNum.valid(field) |
||
| 44 | self.assertFalse(out) |
||
| 45 |