| 50 | assert test_link == test_link2 |
| 51 | |
| 52 | def test_link_neq(self, ability, executor): |
| 53 | test_executor = executor(name='psh', platform='windows') |
| 54 | test_ability = ability(ability_id='123', executors=[test_executor]) |
| 55 | fact_a = Fact(trait='host.user.name', value='a') |
| 56 | fact_b = Fact(trait='host.user.name', value='b') |
| 57 | test_link_a = Link(command='net user a', paw='123456', ability=test_ability, id=111111, executor=test_executor) |
| 58 | test_link_a.used = [fact_a] |
| 59 | test_link_b = Link(command='net user b', paw='123456', ability=test_ability, id=222222, executor=test_executor) |
| 60 | test_link_b.used = [fact_b] |
| 61 | assert test_link_a != test_link_b |
| 62 | |
| 63 | @mock.patch.object(Link, '_emit_status_change_event') |
| 64 | def test_no_status_change_event_on_instantiation(self, mock_emit_status_change_method, ability, executor): |