Exemple #1
0
    def test_Update(self):
        box = Fritz(hostname=defaults.test_host, port=defaults.test_port, protocol=defaults.test_protocol)
        box.setupTR64Device("fritz.box")
        box.username = defaults.test_user
        box.password = defaults.test_pw
        box.httpProxy = defaults.test_httpProxy
        box.httpsProxy = defaults.test_httpsProxy

        (updateAvailable, updateStr) = box.doUpdate()

        self.assertTrue(updateStr)
Exemple #2
0
    def test_CallList(self):
        box = Fritz(hostname=defaults.test_host, port=defaults.test_port, protocol=defaults.test_protocol)
        box.setupTR64Device("fritz.box")
        box.username = defaults.test_user
        box.password = defaults.test_pw
        box.httpProxy = defaults.test_httpProxy
        box.httpsProxy = defaults.test_httpsProxy

        callList = box.getCallList()

        self.assertTrue(len(callList))
Exemple #3
0
    def test_Update(self):
        box = Fritz(hostname=defaults.test_host,
                    port=defaults.test_port,
                    protocol=defaults.test_protocol)
        box.setupTR64Device("fritz.box")
        box.username = defaults.test_user
        box.password = defaults.test_pw
        box.httpProxy = defaults.test_httpProxy
        box.httpsProxy = defaults.test_httpsProxy

        (updateAvailable, updateStr) = box.doUpdate()

        self.assertTrue(updateStr)
Exemple #4
0
    def test_CallList(self):
        box = Fritz(hostname=defaults.test_host,
                    port=defaults.test_port,
                    protocol=defaults.test_protocol)
        box.setupTR64Device("fritz.box")
        box.username = defaults.test_user
        box.password = defaults.test_pw
        box.httpProxy = defaults.test_httpProxy
        box.httpsProxy = defaults.test_httpsProxy

        callList = box.getCallList()

        self.assertTrue(len(callList))
Exemple #5
0
    def test_OptimizedForIPTV(self):
        box = Fritz(hostname=defaults.test_host, port=defaults.test_port, protocol=defaults.test_protocol)
        box.setupTR64Device("fritz.box")
        box.username = defaults.test_user
        box.password = defaults.test_pw
        box.httpProxy = defaults.test_httpProxy
        box.httpsProxy = defaults.test_httpsProxy

        isOptimized = box.isOptimizedForIPTV()

        box.setOptimizedForIPTV(not isOptimized)
        isOptimized2 = box.isOptimizedForIPTV()

        self.assertEqual(isOptimized2, not isOptimized)

        box.setOptimizedForIPTV(isOptimized)
        isOptimized2 = box.isOptimizedForIPTV()

        self.assertEqual(isOptimized2, isOptimized)
Exemple #6
0
    def test_OptimizedForIPTV(self):
        box = Fritz(hostname=defaults.test_host,
                    port=defaults.test_port,
                    protocol=defaults.test_protocol)
        box.setupTR64Device("fritz.box")
        box.username = defaults.test_user
        box.password = defaults.test_pw
        box.httpProxy = defaults.test_httpProxy
        box.httpsProxy = defaults.test_httpsProxy

        isOptimized = box.isOptimizedForIPTV()

        box.setOptimizedForIPTV(not isOptimized)
        isOptimized2 = box.isOptimizedForIPTV()

        self.assertEqual(isOptimized2, not isOptimized)

        box.setOptimizedForIPTV(isOptimized)
        isOptimized2 = box.isOptimizedForIPTV()

        self.assertEqual(isOptimized2, isOptimized)