Beispiel #1
0
 def test_agent_interface_not_exist(self):
     self.assertRaises(LookupError, agent_dao.agent_interface(1))
Beispiel #2
0
    def test_agent_interface(self):
        agent = self._insert_agent()

        interface = agent_dao.agent_interface(agent.id)

        self.assertEqual(interface, 'Agent/%s' % self.agent_number)
Beispiel #3
0
    def test_agent_interface(self):
        agent = self._insert_agent()

        interface = agent_dao.agent_interface(agent.id)

        self.assertEqual(interface, 'Agent/%s' % self.agent_number)
Beispiel #4
0
 def test_agent_interface_not_exist(self):
     self.assertRaises(LookupError, agent_dao.agent_interface(1))
Beispiel #5
0
 def set_presence(self, agent_id, presence):
     agent_member_name = agent_dao.agent_interface(agent_id)
     if agent_member_name is not None:
         self.agent_executor.log_presence(agent_member_name, presence)