Ejemplo n.º 1
0
    def test_scheduled_unknown_scheduler(self):
        scheduler1 = MockProgramyScheduler(self._test_client, self.create_config(False, None, False))
        self.assertIsNotNone(ProgramyScheduler.schedulers)
        self.assertEqual(1, len(ProgramyScheduler.schedulers.keys()))
        self.assertTrue("Scheduler1" in ProgramyScheduler.schedulers)
        self.assertEqual(scheduler1, ProgramyScheduler.schedulers['Scheduler1'])

        self.assertFalse(scheduler1._scheduled)
        scheduled("Scheduler2", "User1", "TestClient", "MESSAGE", "REMIND ME")
        self.assertFalse(scheduler1._scheduled)
Ejemplo n.º 2
0
    def test_scheduled_unknown_scheduler(self):
        scheduler1 = MockProgramyScheduler(self._test_client, self.create_config(False, None, False))
        self.assertIsNotNone(ProgramyScheduler.schedulers)
        self.assertEquals(1, len(ProgramyScheduler.schedulers.keys()))
        self.assertTrue("Scheduler1" in ProgramyScheduler.schedulers)
        self.assertEquals(scheduler1, ProgramyScheduler.schedulers['Scheduler1'])

        self.assertFalse(scheduler1._scheduled)
        scheduled("Scheduler2", "User1", "TestClient", "MESSAGE", "REMIND ME")
        self.assertFalse(scheduler1._scheduled)