Conditions | 1 |
Total Lines | 29 |
Code Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from unittest import TestCase |
||
57 | def test_eq(self): |
||
58 | # SETUP |
||
59 | attribute1 = Attribute( |
||
60 | name='attr', |
||
61 | type_=int, |
||
62 | value=42, |
||
63 | doc='some doc', |
||
64 | comment='some comment', |
||
65 | hint='int', |
||
66 | module=None, |
||
67 | assigned_value='42', |
||
68 | line='attr: int = 42', |
||
69 | line_nr=-1) |
||
70 | |||
71 | attribute2 = Attribute( |
||
72 | name='attr', |
||
73 | type_=int, |
||
74 | value=42, |
||
75 | doc='some doc', |
||
76 | comment='some comment', |
||
77 | hint='int', |
||
78 | module=None, |
||
79 | assigned_value='42', |
||
80 | line='attr: int = 42', |
||
81 | line_nr=-1) |
||
82 | |||
83 | # EXECUTE & VERIFY |
||
84 | self.assertTrue(attribute1 is not attribute2) |
||
85 | self.assertTrue(attribute1 == attribute2) |
||
86 |