def test_scheduled_srai(self): client = MockClient() scheduler1 = ProgramyScheduler(client, SchedulerConfiguration()) scheduler1.scheduled("user1", "client1", "SRAI", "Hello") self.assertEquals("Mock Response", client._response)
def test_scheduled_unknown(self): client = MockClient() scheduler1 = ProgramyScheduler(client, SchedulerConfiguration()) scheduler1.scheduled("user1", "client1", "UNKNOWN", "Hello") self.assertIsNone(client._response)
def test_scheduled_text(self): client = MockClient() scheduler1 = ProgramyScheduler(client, SchedulerConfiguration()) scheduler1.scheduled("user1", "client1", "TEXT", "Hello") self.assertEquals("Hello", client._response)