| Conditions | 3 |
| Total Lines | 13 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python3 |
||
| 14 | def test_valid(self): |
||
| 15 | """Test field formats that are valid ElementBase elements.""" |
||
| 16 | |||
| 17 | test_fields = [ |
||
| 18 | ('a', 'd'), # double |
||
| 19 | ('b', 'f'), # float |
||
| 20 | ('e', '?'), # bool: 0, 1 |
||
| 21 | ] |
||
| 22 | |||
| 23 | for field in test_fields: |
||
| 24 | with self.subTest(field): # pylint: disable=no-member |
||
| 25 | out = ElementBase.valid(field) |
||
| 26 | self.assertTrue(out) |
||
| 27 | |||
| 47 |