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_ship_type_group.py   Eos(Download)
        self.assertEqual(restriction_error.ship_type, 772)
        self.assertEqual(restriction_error.ship_group, 31)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertEqual(restriction_error.ship_type, 772)
        self.assertEqual(restriction_error.ship_group, 31)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertEqual(restriction_error.ship_type, 772)
        self.assertEqual(restriction_error.ship_group, 31)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertEqual(restriction_error.ship_type, 772)
        self.assertEqual(restriction_error.ship_group, 31)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertEqual(restriction_error.ship_type, 772)
        self.assertEqual(restriction_error.ship_group, 31)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_charge_group.py   Eos(Download)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertEqual(restriction_error2.holder_group, 1008)
        self.untrack_holder(container_holder)
        self.untrack_holder(charge_holder)
        self.assertEqual(len(self.log), 0)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertEqual(restriction_error2.holder_group, 1008)
        self.untrack_holder(container_holder)
        self.untrack_holder(charge_holder)
        self.assertEqual(len(self.log), 0)
        self.assertIn(3, restriction_error2.allowed_groups)
        self.assertEqual(restriction_error2.holder_group, 1008)
        self.untrack_holder(container_holder)
        self.untrack_holder(charge_holder)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_holder_class.py   Eos(Download)
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNone(restriction_error)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()
        self.assertEqual(restriction_error.holder_class, Booster)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()
        self.assertEqual(restriction_error.holder_class, Booster)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()
        restriction_error = self.get_restriction_error(holder, Restriction.holder_class)
        self.assertIsNone(restriction_error)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()
        self.assertEqual(restriction_error.holder_class, Character)
        self.assertEqual(len(restriction_error.expected_classes), 0)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_drone_group.py   Eos(Download)
        self.assertCountEqual(restriction_error.allowed_groups, (4,))
        self.assertEqual(restriction_error.holder_group, 56)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertCountEqual(restriction_error.allowed_groups, (69,))
        self.assertEqual(restriction_error.holder_group, 797)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertCountEqual(restriction_error.allowed_groups, (48, 106))
        self.assertEqual(restriction_error.holder_group, 803)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertCountEqual(restriction_error.allowed_groups, (59,))
        self.assertEqual(restriction_error.holder_group, 37)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)
        self.assertCountEqual(restriction_error.allowed_groups, (1896,))
        self.assertEqual(restriction_error.holder_group, None)
        self.untrack_holder(holder)
        self.set_ship(None)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_launched_drone.py   Eos(Download)
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()
        self.assertEqual(restriction_error.slots_max_allowed, 0)
        self.assertEqual(restriction_error.slots_used, 1)
        self.untrack_holder(holder)
        self.assertEqual(len(self.log), 0)
        self.assert_restriction_buffers_empty()
        self.assertEqual(restriction_error2.slots_max_allowed, 1)
        self.assertEqual(restriction_error2.slots_used, 2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.launched_drone)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_max_group_online.py   Eos(Download)
        self.assertEqual(restriction_error2.holder_group, 6)
        self.assertEqual(restriction_error2.group_holders, 2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_online)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_online)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_max_group_active.py   Eos(Download)
        self.assertEqual(restriction_error2.holder_group, 6)
        self.assertEqual(restriction_error2.group_holders, 2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_active)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_active)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_max_group_fitted.py   Eos(Download)
        self.assertEqual(restriction_error2.holder_group, 6)
        self.assertEqual(restriction_error2.group_holders, 2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_fitted)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        restriction_error2 = self.get_restriction_error(holder2, Restriction.max_group_fitted)
        self.assertIsNone(restriction_error2)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_subsystem_index.py   Eos(Download)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(restriction_error2.holder_slot_index, 120)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(restriction_error2.holder_slot_index, 120)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(restriction_error2.holder_slot_index, 120)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)

src/e/o/Eos-HEAD/tests/restriction_tracker/restrictions/test_implant_index.py   Eos(Download)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(restriction_error2.holder_slot_index, 120)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(restriction_error2.holder_slot_index, 120)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)
        self.assertIsNotNone(restriction_error2)
        self.assertEqual(restriction_error2.holder_slot_index, 120)
        self.untrack_holder(holder1)
        self.untrack_holder(holder2)
        self.assertEqual(len(self.log), 0)

  1 | 2 | 3  Next