def test_jidWhenInitialized(self):
        xs = self.client.factory.buildProtocol(None)
        self.client.factory.authenticator.jid = JID('user@example.org/test')
        xs.dispatch(xs, xmlstream.STREAM_AUTHD_EVENT)
        self.assertEquals(JID('user@example.org/test'), self.client.jid)
Make sure that upon login, the JID is updated from the authenticator.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_client.py/XMPPClientTest.test_jidWhenInitialized