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

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

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_calibration.py   Eos(Download)
        self.fit.stats.calibration.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.calibration)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.calibration.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.calibration)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.calibration.output = None
        restriction_error = self.get_restriction_error(holder, Restriction.calibration)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 0)
        self.assertEqual(restriction_error.total_use, 5)
        self.fit.stats.calibration.output = 40
        restriction_error1 = self.get_restriction_error(holder1, Restriction.calibration)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.output, 40)
        self.assertEqual(restriction_error1.total_use, 45)
        self.assertEqual(restriction_error1.holder_use, 25)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.calibration)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_dronebay_volume.py   Eos(Download)
        self.fit.stats.dronebay.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.dronebay_volume)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.dronebay.output = None
        restriction_error = self.get_restriction_error(holder, Restriction.dronebay_volume)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 0)
        self.assertEqual(restriction_error.total_use, 5)
        self.fit.stats.dronebay.output = 40
        restriction_error1 = self.get_restriction_error(holder1, Restriction.dronebay_volume)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.output, 40)
        self.assertEqual(restriction_error1.total_use, 45)
        self.assertEqual(restriction_error1.holder_use, 25)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.dronebay_volume)
        self.assertIsNotNone(restriction_error2)
        self.fit.stats.dronebay.output = 50
        restriction_error = self.get_restriction_error(holder, Restriction.dronebay_volume)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 50)
        self.assertEqual(restriction_error.total_use, 100)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_turret_slot.py   Eos(Download)
        self.fit.stats.turret_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.turret_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.turret_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.turret_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.turret_slots.total = None
        restriction_error = self.get_restriction_error(holder, Restriction.turret_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.turret_slots.total = 1
        restriction_error1 = self.get_restriction_error(holder1, Restriction.turret_slot)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.slots_max_allowed, 1)
        self.assertEqual(restriction_error1.slots_used, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.turret_slot)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_subsystem_slot.py   Eos(Download)
        self.fit.stats.subsystem_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.subsystem_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.subsystem_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.subsystem_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.subsystem_slots.total = None
        restriction_error = self.get_restriction_error(holder, Restriction.subsystem_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.subsystem_slots.total = 1
        restriction_error1 = self.get_restriction_error(holder1, Restriction.subsystem_slot)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.slots_max_allowed, 1)
        self.assertEqual(restriction_error1.slots_used, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.subsystem_slot)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_rig_slot.py   Eos(Download)
        self.fit.stats.rig_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.rig_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.rig_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.rig_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.rig_slots.total = None
        restriction_error = self.get_restriction_error(holder, Restriction.rig_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.rig_slots.total = 1
        restriction_error1 = self.get_restriction_error(holder1, Restriction.rig_slot)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.slots_max_allowed, 1)
        self.assertEqual(restriction_error1.slots_used, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.rig_slot)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_launcher_slot.py   Eos(Download)
        self.fit.stats.launcher_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.launcher_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.launcher_slots.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.launcher_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.launcher_slots.total = None
        restriction_error = self.get_restriction_error(holder, Restriction.launcher_slot)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.launcher_slots.total = 1
        restriction_error1 = self.get_restriction_error(holder1, Restriction.launcher_slot)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.slots_max_allowed, 1)
        self.assertEqual(restriction_error1.slots_used, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.launcher_slot)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_max_group_online.py   Eos(Download)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_online)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 6)
        self.assertEqual(restriction_error1.group_holders, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_online)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_online)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 92)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_online)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 61)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_max_group_active.py   Eos(Download)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_active)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 6)
        self.assertEqual(restriction_error1.group_holders, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_active)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_active)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 92)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_active)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 61)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_launched_drone.py   Eos(Download)
        self.fit.stats.launched_drones.total = 0
        restriction_error = self.get_restriction_error(holder, Restriction.launched_drone)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.launched_drones.total = None
        restriction_error = self.get_restriction_error(holder, Restriction.launched_drone)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.fit.stats.launched_drones.total = 1
        restriction_error1 = self.get_restriction_error(holder1, Restriction.launched_drone)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.slots_max_allowed, 1)
        self.assertEqual(restriction_error1.slots_used, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.launched_drone)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_max_group_fitted.py   Eos(Download)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_fitted)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 6)
        self.assertEqual(restriction_error1.group_holders, 2)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_fitted)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_fitted)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 92)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.max_group_fitted)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.max_group, 1)
        self.assertEqual(restriction_error1.holder_group, 61)

Previous  1 | 2 | 3  Next