Ejemplo n.º 1
0
 def test_detects_legacy_scheduler(self):
     self.assertTrue(
         scheduler.is_legacy_scheduler(
             SchedulerCategorizationTests.LegacyScheduler))
     self.assertTrue(
         scheduler.is_legacy_scheduler(SchedulerCategorizationTests.
                                       LegacySchedulerWithAdditionalArgs))
Ejemplo n.º 2
0
 def test_a_regular_scheduler_is_not_a_legacy_scheduler(self):
     self.assertFalse(
         scheduler.is_legacy_scheduler(scheduler.DeterministicScheduler))
     self.assertFalse(
         scheduler.is_legacy_scheduler(scheduler.UnitAwareScheduler))
Ejemplo n.º 3
0
 def test_a_regular_scheduler_is_not_a_legacy_scheduler(self):
     assert not scheduler.is_legacy_scheduler(
         scheduler.DeterministicScheduler)
     assert not scheduler.is_legacy_scheduler(scheduler.UnitAwareScheduler)
Ejemplo n.º 4
0
 def test_detects_legacy_scheduler(self):
     assert scheduler.is_legacy_scheduler(self.LegacyScheduler)
     assert scheduler.is_legacy_scheduler(
         self.LegacySchedulerWithAdditionalArgs)