test DD-WRT

This commit is contained in:
Jack Robison 2018-10-04 17:31:11 -04:00
parent d9fee45fc7
commit 2f10a50bd1
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 191 additions and 4 deletions

179
tests/devices/DD-WRT router Normal file

File diff suppressed because one or more lines are too long

View file

@ -2,11 +2,7 @@ from twisted.internet import reactor, defer
from twisted.trial import unittest
from txupnp.constants import SSDP_PORT, SSDP_IP_ADDRESS
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.util import verify_return_types
class TestDevice(unittest.TestCase):
@ -103,3 +99,15 @@ class TestSCPD(TestDevice):
command5 = getattr(self.upnp, method)
result = yield command5(*tuple(args))
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"