Exemplo n.º 1
0
 def test_clientinfo(self):
     from xpra.server.source.clientinfo_mixin import ClientInfoMixin
     x = ClientInfoMixin()
     x.init_state()
     assert x.get_connect_info()
     assert x.get_info()
     c = typedict()
     x.parse_client_caps(c)
     assert x.get_connect_info()
     assert x.get_info()
     x.cleanup()
     assert x.get_connect_info()
     assert x.get_info()
Exemplo n.º 2
0
 def test_clientinfo(self):
     from xpra.server.source.clientinfo_mixin import ClientInfoMixin
     self._test_mixin_class(ClientInfoMixin)
     x = ClientInfoMixin()
     x.init_state()
     assert x.get_connect_info()
     assert x.get_info()
     c = typedict()
     c.update({
         "session-type": "test",
         "opengl": {
             "renderer": "fake"
         },
         "proxy": True,
         "proxy.hostname": "some-hostname",
     })
     x.parse_client_caps(c)
     assert x.get_connect_info()
     assert x.get_info()
     x.cleanup()
     assert x.get_connect_info()
     assert x.get_info()