Mercurial > libervia-backend
comparison sat/test/test_core_xmpp.py @ 3398:467d6c709f1d
test: fixed use of `client.host` in legacy test:
those tests are not maintained anymore, but as the use of `client.host` as been fixed
elsewhere, it was the occasion to do it there too. Those legacy tests should be ported or
to the new workflow, or deleted if they are not relevant anymore.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:15 +0100 |
parents | 559a625a236b |
children | be6d91572633 |
comparison
equal
deleted
inserted
replaced
3397:c069882f64cb | 3398:467d6c709f1d |
---|---|
33 self.client = xmpp.SatXMPPClient(self.host, Const.PROFILE[0], JID("test@example.org"), "test") | 33 self.client = xmpp.SatXMPPClient(self.host, Const.PROFILE[0], JID("test@example.org"), "test") |
34 | 34 |
35 def test_init(self): | 35 def test_init(self): |
36 """Check that init values are correctly initialised""" | 36 """Check that init values are correctly initialised""" |
37 self.assertEqual(self.client.profile, Const.PROFILE[0]) | 37 self.assertEqual(self.client.profile, Const.PROFILE[0]) |
38 print(self.client.host) | 38 print(self.client.jid.host) |
39 self.assertEqual(self.client.host_app, self.host) | 39 self.assertEqual(self.client.host_app, self.host) |
40 | 40 |
41 | 41 |
42 class SatMessageProtocolTest(unittest.TestCase): | 42 class SatMessageProtocolTest(unittest.TestCase): |
43 | 43 |