forked from openviess/PyViCare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_VitolaUniferral.py
29 lines (20 loc) · 1023 Bytes
/
test_VitolaUniferral.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import unittest
from PyViCare.PyViCareOilBoiler import OilBoiler
from tests.ViCareServiceMock import ViCareServiceMock
class VitolaUniferral(unittest.TestCase):
def setUp(self):
self.service = ViCareServiceMock('response/VitolaUniferral.json')
self.device = OilBoiler(self.service)
def test_getDomesticHotWaterConfiguredTemperature(self):
self.assertEqual(
self.device.getDomesticHotWaterConfiguredTemperature(), 60)
def test_getActive(self):
self.assertEqual(self.device.burners[0].getActive(), True)
def test_getBurnerStarts(self):
self.assertEqual(self.device.burners[0].getStarts(), 5156)
def test_getBurnerHours(self):
self.assertEqual(self.device.burners[0].getHours(), 1021.4)
def test_getBoilerTemperature(self):
self.assertEqual(self.device.getBoilerTemperature(), 26.6)
def test_getDomesticHotWaterStorageTemperature(self):
self.assertEqual(self.device.getDomesticHotWaterStorageTemperature(), 56.9)