Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(325)  |  Call(325)  |  Derive(0)  |  Import(0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_implant_index.py   Eos(Download)
        holder1 = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        holder2 = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        self.track_holder(holder1)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.implant_index)
        holder1 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder2 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder1)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.implant_index)
        holder1.attributes = {Attribute.implantness: 119}
        holder2.attributes = {Attribute.implantness: 121}
        self.track_holder(holder1)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.implant_index)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_booster_index.py   Eos(Download)
        holder1 = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Booster(1))
        holder2 = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Booster(1))
        self.track_holder(holder1)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.booster_index)
        holder1 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder2 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder1)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.booster_index)
        holder1.attributes = {Attribute.boosterness: 119}
        holder2.attributes = {Attribute.boosterness: 121}
        self.track_holder(holder1)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.booster_index)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_powergrid.py   Eos(Download)
        holder = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder.attributes = {Attribute.power: 50}
        self.track_holder(holder)
        self.fit.stats.powergrid.used = 50
        self.fit.stats.powergrid.output = 40
        holder = Mock(state=State.online, item=item, _location=Location.character, spec_set=Implant(1))
        holder.attributes = {Attribute.power: 50}
        self.track_holder(holder)
        self.fit.stats.powergrid.used = 50
        self.fit.stats.powergrid.output = 40
        holder = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder.attributes = {Attribute.power: 5}
        self.track_holder(holder)
        self.fit.stats.powergrid.used = 5
        self.fit.stats.powergrid.output = None
        holder1 = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder1.attributes = {Attribute.power: 25}
        self.track_holder(holder1)
        holder2 = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder2.attributes = {Attribute.power: 20}
        self.track_holder(holder2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_drone_bandwidth.py   Eos(Download)
        holder = Mock(state=State.online, item=item, _location=Location.space, spec_set=Drone(1))
        holder.attributes = {Attribute.drone_bandwidth_used: 50}
        self.track_holder(holder)
        self.fit.stats.drone_bandwidth.used = 50
        self.fit.stats.drone_bandwidth.output = 40
        holder = Mock(state=State.online, item=item, _location=Location.character, spec_set=Implant(1))
        holder.attributes = {Attribute.drone_bandwidth_used: 50}
        self.track_holder(holder)
        self.fit.stats.drone_bandwidth.used = 50
        self.fit.stats.drone_bandwidth.output = 40
        holder = Mock(state=State.online, item=item, _location=Location.space, spec_set=Drone(1))
        holder.attributes = {Attribute.drone_bandwidth_used: 5}
        self.track_holder(holder)
        self.fit.stats.drone_bandwidth.used = 5
        self.fit.stats.drone_bandwidth.output = None
        holder1 = Mock(state=State.online, item=item, _location=Location.space, spec_set=Drone(1))
        holder1.attributes = {Attribute.drone_bandwidth_used: 25}
        self.track_holder(holder1)
        holder2 = Mock(state=State.online, item=item, _location=Location.space, spec_set=Drone(1))
        holder2.attributes = {Attribute.drone_bandwidth_used: 20}
        self.track_holder(holder2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_cpu.py   Eos(Download)
        holder = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder.attributes = {Attribute.cpu: 50}
        self.track_holder(holder)
        self.fit.stats.cpu.used = 50
        self.fit.stats.cpu.output = 40
        holder = Mock(state=State.online, item=item, _location=Location.character, spec_set=Implant(1))
        holder.attributes = {Attribute.cpu: 50}
        self.track_holder(holder)
        self.fit.stats.cpu.used = 50
        self.fit.stats.cpu.output = 40
        holder = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder.attributes = {Attribute.cpu: 5}
        self.track_holder(holder)
        self.fit.stats.cpu.used = 5
        self.fit.stats.cpu.output = None
        holder1 = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder1.attributes = {Attribute.cpu: 25}
        self.track_holder(holder1)
        holder2 = Mock(state=State.online, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder2.attributes = {Attribute.cpu: 20}
        self.track_holder(holder2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_turret_slot.py   Eos(Download)
        item.slots = {Slot.turret}
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder)
        self.fit.stats.turret_slots.used = 1
        self.fit.stats.turret_slots.total = 0
        item.slots = {Slot.turret}
        holder = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        self.track_holder(holder)
        self.fit.stats.turret_slots.used = 1
        self.fit.stats.turret_slots.total = 0
        item.slots = {Slot.turret}
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder)
        self.fit.stats.turret_slots.used = 1
        self.fit.stats.turret_slots.total = None
        holder1 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder2 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder1)
        self.track_holder(holder2)
        self.fit.stats.turret_slots.used = 2

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_subsystem_slot.py   Eos(Download)
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Subsystem(1))
        self.fit.subsystems.add(holder)
        self.track_holder(holder)
        self.fit.stats.subsystem_slots.used = 1
        self.fit.stats.subsystem_slots.total = 0
        holder = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        self.fit.subsystems.add(holder)
        self.track_holder(holder)
        self.fit.stats.subsystem_slots.used = 1
        self.fit.stats.subsystem_slots.total = 0
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Subsystem(1))
        self.fit.subsystems.add(holder)
        self.track_holder(holder)
        self.fit.stats.subsystem_slots.used = 1
        self.fit.stats.subsystem_slots.total = None
        self.fit.subsystems.add(holder1)
        self.fit.subsystems.add(holder2)
        self.track_holder(holder1)
        self.track_holder(holder2)
        self.fit.stats.subsystem_slots.used = 2

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_rig_slot.py   Eos(Download)
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Rig(1))
        self.fit.rigs.add(holder)
        self.track_holder(holder)
        self.fit.stats.rig_slots.used = 1
        self.fit.stats.rig_slots.total = 0
        holder = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        self.fit.rigs.add(holder)
        self.track_holder(holder)
        self.fit.stats.rig_slots.used = 1
        self.fit.stats.rig_slots.total = 0
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Rig(1))
        self.fit.rigs.add(holder)
        self.track_holder(holder)
        self.fit.stats.rig_slots.used = 1
        self.fit.stats.rig_slots.total = None
        self.fit.rigs.add(holder1)
        self.fit.rigs.add(holder2)
        self.track_holder(holder1)
        self.track_holder(holder2)
        self.fit.stats.rig_slots.used = 2

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_launcher_slot.py   Eos(Download)
        item.slots = {Slot.launcher}
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder)
        self.fit.stats.launcher_slots.used = 1
        self.fit.stats.launcher_slots.total = 0
        item.slots = {Slot.launcher}
        holder = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        self.track_holder(holder)
        self.fit.stats.launcher_slots.used = 1
        self.fit.stats.launcher_slots.total = 0
        item.slots = {Slot.launcher}
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder)
        self.fit.stats.launcher_slots.used = 1
        self.fit.stats.launcher_slots.total = None
        holder1 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        holder2 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=ModuleHigh(1))
        self.track_holder(holder1)
        self.track_holder(holder2)
        self.fit.stats.launcher_slots.used = 2

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_calibration.py   Eos(Download)
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Rig(1))
        holder.attributes = {Attribute.upgrade_cost: 50}
        self.track_holder(holder)
        self.fit.stats.calibration.used = 50
        self.fit.stats.calibration.output = 40
        holder = Mock(state=State.offline, item=item, _location=Location.character, spec_set=Implant(1))
        holder.attributes = {Attribute.upgrade_cost: 50}
        self.track_holder(holder)
        self.fit.stats.calibration.used = 50
        self.fit.stats.calibration.output = 40
        holder = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Rig(1))
        holder.attributes = {Attribute.upgrade_cost: 5}
        self.track_holder(holder)
        self.fit.stats.calibration.used = 5
        self.fit.stats.calibration.output = None
        holder1 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Rig(1))
        holder1.attributes = {Attribute.upgrade_cost: 25}
        self.track_holder(holder1)
        holder2 = Mock(state=State.offline, item=item, _location=Location.ship, spec_set=Rig(1))
        holder2.attributes = {Attribute.upgrade_cost: 20}
        self.track_holder(holder2)

Previous  1 | 2 | 3  Next