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_ship_type_group.py   Eos(Download)
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.ship_type_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_types, (10,))
        self.assertCountEqual(restriction_error.allowed_groups, ())
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.ship_type_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_types, (10,))
        self.assertCountEqual(restriction_error.allowed_groups, ())
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.ship_type_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_types, (10,))
        self.assertCountEqual(restriction_error.allowed_groups, ())
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.ship_type_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_types, (10,))
        self.assertCountEqual(restriction_error.allowed_groups, ())
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.ship_type_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_types, (10,))
        self.assertCountEqual(restriction_error.allowed_groups, ())

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_holder_class.py   Eos(Download)
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.holder_class, Booster)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.holder_class, Booster)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.holder_class, Character)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.holder_class, Charge)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.track_holder(holder)
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.holder_class, Drone)
        self.assertEqual(len(restriction_error.expected_classes), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_drone_group.py   Eos(Download)
        self.set_ship(ship_holder)
        restriction_error = self.get_restriction_error(holder, Restriction.drone_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_groups, (4,))
        self.assertEqual(restriction_error.holder_group, 56)
        self.set_ship(ship_holder)
        restriction_error = self.get_restriction_error(holder, Restriction.drone_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_groups, (69,))
        self.assertEqual(restriction_error.holder_group, 797)
        self.set_ship(ship_holder)
        restriction_error = self.get_restriction_error(holder, Restriction.drone_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_groups, (48, 106))
        self.assertEqual(restriction_error.holder_group, 803)
        self.set_ship(ship_holder)
        restriction_error = self.get_restriction_error(holder, Restriction.drone_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_groups, (59,))
        self.assertEqual(restriction_error.holder_group, 37)
        self.set_ship(ship_holder)
        restriction_error = self.get_restriction_error(holder, Restriction.drone_group)
        self.assertIsNotNone(restriction_error)
        self.assertCountEqual(restriction_error.allowed_groups, (1896,))
        self.assertEqual(restriction_error.holder_group, None)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_subsystem_index.py   Eos(Download)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.subsystem_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.subsystem_index)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.subsystem_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.subsystem_index)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.subsystem_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.subsystem_index)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_implant_index.py   Eos(Download)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.implant_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.implant_index)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.implant_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.implant_index)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.implant_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.implant_index)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_booster_index.py   Eos(Download)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.booster_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.booster_index)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.booster_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.booster_index)
        self.assertIsNotNone(restriction_error2)
        self.track_holder(holder2)
        restriction_error1 = self.get_restriction_error(holder1, Restriction.booster_index)
        self.assertIsNotNone(restriction_error1)
        self.assertEqual(restriction_error1.holder_slot_index, 120)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.booster_index)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_charge_group.py   Eos(Download)
        self.assertIsNone(restriction_error1)
        restriction_error2 = self.get_restriction_error(charge_holder, Restriction.charge_group)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(len(restriction_error2.allowed_groups), 1)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertIsNone(restriction_error1)
        restriction_error2 = self.get_restriction_error(charge_holder, Restriction.charge_group)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(len(restriction_error2.allowed_groups), 1)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertIsNone(restriction_error1)
        restriction_error2 = self.get_restriction_error(charge_holder, Restriction.charge_group)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(len(restriction_error2.allowed_groups), 1)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertIsNone(restriction_error1)
        restriction_error2 = self.get_restriction_error(charge_holder, Restriction.charge_group)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(len(restriction_error2.allowed_groups), 1)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertIsNone(restriction_error1)
        restriction_error2 = self.get_restriction_error(charge_holder, Restriction.charge_group)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(len(restriction_error2.allowed_groups), 1)
        self.assertIn(3, restriction_error2.allowed_groups)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_powergrid.py   Eos(Download)
        self.fit.stats.powergrid.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.powergrid)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.powergrid.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.powergrid)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.powergrid.output = None
        restriction_error = self.get_restriction_error(holder, Restriction.powergrid)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 0)
        self.assertEqual(restriction_error.total_use, 5)
        self.fit.stats.powergrid.output = 40
        restriction_error1 = self.get_restriction_error(holder1, Restriction.powergrid)
        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.powergrid)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_drone_bandwidth.py   Eos(Download)
        self.fit.stats.drone_bandwidth.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.drone_bandwidth)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.drone_bandwidth.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.drone_bandwidth)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.drone_bandwidth.output = None
        restriction_error = self.get_restriction_error(holder, Restriction.drone_bandwidth)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 0)
        self.assertEqual(restriction_error.total_use, 5)
        self.fit.stats.drone_bandwidth.output = 40
        restriction_error1 = self.get_restriction_error(holder1, Restriction.drone_bandwidth)
        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.drone_bandwidth)
        self.assertIsNotNone(restriction_error2)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_cpu.py   Eos(Download)
        self.fit.stats.cpu.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.cpu)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.cpu.output = 40
        restriction_error = self.get_restriction_error(holder, Restriction.cpu)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 40)
        self.assertEqual(restriction_error.total_use, 50)
        self.fit.stats.cpu.output = None
        restriction_error = self.get_restriction_error(holder, Restriction.cpu)
        self.assertIsNotNone(restriction_error)
        self.assertEqual(restriction_error.output, 0)
        self.assertEqual(restriction_error.total_use, 5)
        self.fit.stats.cpu.output = 40
        restriction_error1 = self.get_restriction_error(holder1, Restriction.cpu)
        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.cpu)
        self.assertIsNotNone(restriction_error2)

  1 | 2 | 3  Next