| 38 | class TestLink: |
| 39 | |
| 40 | def test_link_eq(self, ability, executor): |
| 41 | test_executor = executor(name='psh', platform='windows') |
| 42 | test_ability = ability(ability_id='123', executors=[test_executor]) |
| 43 | fact = Fact(trait='remote.host.fqdn', value='dc') |
| 44 | test_link = Link(command='sc.exe \\dc create sandsvc binpath= "s4ndc4t.exe -originLinkID 111111"', |
| 45 | paw='123456', ability=test_ability, id=111111, executor=test_executor) |
| 46 | test_link.used = [fact] |
| 47 | test_link2 = Link(command='sc.exe \\dc create sandsvc binpath= "s4ndc4t.exe -originLinkID 222222"', |
| 48 | paw='123456', ability=test_ability, id=222222, executor=test_executor) |
| 49 | test_link2.used = [fact] |
| 50 | assert test_link == test_link2 |
| 51 | |
| 52 | def test_link_neq(self, ability, executor): |
| 53 | test_executor = executor(name='psh', platform='windows') |