Beispiel #1
0
 def test_hostname_resource(self):
     jid = ElogProcessor.make_jid(ElogProcessor.parse_uri('node:****@host.com/foo/%hostname%'))
     self.assertEqual('node', jid.local)
     self.assertEqual('host.com', jid.domain)
     self.assertEqual('foo/%s' % self.host, jid.resource)
Beispiel #2
0
 def test_simple_resource(self):
     jid = ElogProcessor.make_jid(ElogProcessor.parse_uri('node:****@host.com/foo'))
     self.assertEqual('node', jid.local)
     self.assertEqual('host.com', jid.domain)
     self.assertEqual('foo', jid.resource)