add hs100 tests

This commit is contained in:
Teemu Rytilahti 2017-08-05 17:27:06 +02:00
parent 675f618777
commit d648c6bd2b
2 changed files with 7 additions and 2 deletions

View File

@ -58,7 +58,7 @@ sysinfo_hs100 = {'system': {'get_sysinfo':
'latitude': 12.2, 'latitude': 12.2,
'led_off': 0, 'led_off': 0,
'longitude': 12.2, 'longitude': 12.2,
'mac': '50:C7:BF:xx:xx:xx', 'mac': '50:C7:BF:11:22:33',
'model': 'HS100(EU)', 'model': 'HS100(EU)',
'oemId': '812A90EB2FCF306A993FAD8748024B07', 'oemId': '812A90EB2FCF306A993FAD8748024B07',
'on_time': 255419, 'on_time': 255419,

View File

@ -6,8 +6,9 @@ import re
from .. import SmartPlug, SmartDeviceException from .. import SmartPlug, SmartDeviceException
from .fakes import (FakeTransportProtocol, from .fakes import (FakeTransportProtocol,
sysinfo_hs110, sysinfo_hs100,
sysinfo_hs105, sysinfo_hs105,
sysinfo_hs110,
sysinfo_hs200) sysinfo_hs200)
PLUG_IP = '192.168.250.186' PLUG_IP = '192.168.250.186'
@ -250,6 +251,10 @@ class TestSmartPlugHS110(TestCase):
# TODO check setting? # TODO check setting?
class TestSmartPlugHS100(TestSmartPlugHS110):
SYSINFO = sysinfo_hs100
class TestSmartPlugHS200(TestSmartPlugHS110): class TestSmartPlugHS200(TestSmartPlugHS110):
SYSINFO = sysinfo_hs200 SYSINFO = sysinfo_hs200