Ejemplo n.º 1
0
 def testJIDSetFullWithUser(self):
     """Test setting the full JID with a user portion."""
     j = JID('user@domain/resource')
     j.full = 'otheruser@otherdomain/otherresource'
     self.check_jid(j, 'otheruser', 'otherdomain', 'otherresource',
                    'otheruser@otherdomain',
                    'otheruser@otherdomain/otherresource',
                    'otheruser@otherdomain/otherresource')
Ejemplo n.º 2
0
 def testJIDFullNoUserNoResource(self):
     """
     Test setting the full JID without a user
     portion and without a resource.
     """
     j = JID('user@domain/resource')
     j.full = 'otherdomain'
     self.check_jid(j, '', 'otherdomain', '', 'otherdomain', 'otherdomain',
                    'otherdomain')
Ejemplo n.º 3
0
 def testJIDSetFullWithUser(self):
     """Test setting the full JID with a user portion."""
     j = JID('user@domain/resource')
     j.full = 'otheruser@otherdomain/otherresource'
     self.check_jid(j,
                    'otheruser',
                    'otherdomain',
                    'otherresource',
                    'otheruser@otherdomain',
                    'otheruser@otherdomain/otherresource',
                    'otheruser@otherdomain/otherresource')
Ejemplo n.º 4
0
 def testJIDFullNoUserNoResource(self):
     """
     Test setting the full JID without a user
     portion and without a resource.
     """
     j = JID('user@domain/resource')
     j.full = 'otherdomain'
     self.check_jid(j,
                    '',
                    'otherdomain',
                    '',
                    'otherdomain',
                    'otherdomain',
                    'otherdomain')