예제 #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')
예제 #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")
예제 #3
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')
예제 #4
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')
예제 #5
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",
     )
예제 #6
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')