| Conditions | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from unittest import TestCase |
||
| 40 | def test_is_constant(self): |
||
| 41 | # SETUP |
||
| 42 | attribute1 = Attribute( |
||
| 43 | name='ATTR', |
||
| 44 | type_=int, |
||
| 45 | value=42, |
||
| 46 | doc='some doc', |
||
| 47 | comment='some comment', |
||
| 48 | hint='int', |
||
| 49 | module=None, |
||
| 50 | assigned_value='42', |
||
| 51 | line='attr: int = 42', |
||
| 52 | line_nr=-1) |
||
| 53 | |||
| 54 | # EXECUTE & VERIFY |
||
| 55 | self.assertTrue(attribute1.is_constant) |
||
| 56 | |||
| 86 |