test_jump.py (793B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\industry\tests\test_jump.py 2 from eve.client.script.ui.shared.industry.labelUtils import GetFacilityLabelWithJump 3 import evePathfinder.pathfinderconst as pathfinderconst 4 from testsuites.testcases import ClientTestCase 5 6 def FakeGetByLabel(labelPath, **args): 7 if 'jumps' in args: 8 return True 9 else: 10 return False 11 12 13 class TestBrowserLabels(ClientTestCase): 14 15 def test_get_jumps_to_system(self): 16 invalid_jump_count = pathfinderconst.UNREACHABLE_JUMP_COUNT 17 res1 = GetFacilityLabelWithJump(FakeGetByLabel, 'TestName', 2, 2) 18 res2 = GetFacilityLabelWithJump(FakeGetByLabel, 'TestName', 2, invalid_jump_count) 19 self.assertNotEqual(res1, res2)