Пример #1
0
 def setUpClass(cls):
     cls.console_xml = ("""<?xml version='1.0' encoding='UTF-8'?>
            <console>
             <type>novnc</type>
             <url>http://example.com/vnc_auto.html?token=1234</url>
            </console>""")
     cls.console = VncConsole.deserialize(cls.console_xml, "xml")
Пример #2
0
 def setUpClass(cls):
     cls.console_xml = (
         """<?xml version='1.0' encoding='UTF-8'?>
            <console>
             <type>novnc</type>
             <url>http://example.com/vnc_auto.html?token=1234</url>
            </console>""")
     cls.console = VncConsole.deserialize(cls.console_xml, "xml")
Пример #3
0
    def setUpClass(cls):
        cls.console_json = """
        {
        "console":
            {
            "type": "novnc",
            "url": "http://example.com/vnc_auto.html?token=1234"
             }
        }"""

        cls.console = VncConsole.deserialize(cls.console_json, "json")
Пример #4
0
    def setUpClass(cls):
        cls.console_json = """
        {
        "console":
            {
            "type": "novnc",
            "url": "http://example.com/vnc_auto.html?token=1234"
             }
        }"""

        cls.console = VncConsole.deserialize(cls.console_json, "json")