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