test DD-WRT
This commit is contained in:
parent
d9fee45fc7
commit
2f10a50bd1
2 changed files with 191 additions and 4 deletions
179
tests/devices/DD-WRT router
Normal file
179
tests/devices/DD-WRT router
Normal file
File diff suppressed because one or more lines are too long
|
@ -2,11 +2,7 @@ from twisted.internet import reactor, defer
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from txupnp.constants import SSDP_PORT, SSDP_IP_ADDRESS
|
from txupnp.constants import SSDP_PORT, SSDP_IP_ADDRESS
|
||||||
from txupnp.upnp import UPnP
|
from txupnp.upnp import UPnP
|
||||||
from txupnp.scpd import SCPDCommand
|
|
||||||
from txupnp.gateway import Service
|
|
||||||
from txupnp.fault import UPnPError
|
|
||||||
from txupnp.mocks import MockReactor, MockSSDPServiceGatewayProtocol, get_device_test_case
|
from txupnp.mocks import MockReactor, MockSSDPServiceGatewayProtocol, get_device_test_case
|
||||||
from txupnp.util import verify_return_types
|
|
||||||
|
|
||||||
|
|
||||||
class TestDevice(unittest.TestCase):
|
class TestDevice(unittest.TestCase):
|
||||||
|
@ -103,3 +99,15 @@ class TestSCPD(TestDevice):
|
||||||
command5 = getattr(self.upnp, method)
|
command5 = getattr(self.upnp, method)
|
||||||
result = yield command5(*tuple(args))
|
result = yield command5(*tuple(args))
|
||||||
self.assertEqual(result, expected)
|
self.assertEqual(result, expected)
|
||||||
|
|
||||||
|
|
||||||
|
class TestDDWRT(unittest.TestCase):
|
||||||
|
manufacturer, model = "DD-WRT", "router"
|
||||||
|
|
||||||
|
|
||||||
|
class TestDDWRTSSDP(TestSSDP):
|
||||||
|
manufacturer, model = "DD-WRT", "router"
|
||||||
|
|
||||||
|
|
||||||
|
class TestDDWRTSCPD(TestSCPD):
|
||||||
|
manufacturer, model = "DD-WRT", "router"
|
||||||
|
|
Loading…
Reference in a new issue