MCPcopy Index your code
hub / github.com/apache/caldera / test_link_eq

Method test_link_eq

tests/objects/test_link.py:40–50  ·  view source on GitHub ↗
(self, ability, executor)

Source from the content-addressed store, hash-verified

38class 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')

Callers

nothing calls this directly

Calls 4

FactClass · 0.90
LinkClass · 0.90
executorFunction · 0.85
abilityFunction · 0.85

Tested by

no test coverage detected