forked from openviess/PyViCare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_Vitocal200S.py
33 lines (24 loc) · 1.13 KB
/
test_Vitocal200S.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
30
31
32
33
import unittest
from PyViCare.PyViCareHeatPump import HeatPump
from tests.ViCareServiceMock import ViCareServiceMock
class Vitocal200S(unittest.TestCase):
def setUp(self):
self.service = ViCareServiceMock('response/Vitocal200S.json')
self.device = HeatPump(self.service)
def test_getDomesticHotWaterConfiguredTemperature(self):
self.assertEqual(
self.device.getDomesticHotWaterConfiguredTemperature(), 40)
def test_getAvailableCompressors(self):
self.assertEqual(self.device.getAvailableCompressors(), ['0'])
def test_getDomesticHotWaterConfiguredTemperature2(self):
self.assertEqual(
self.device.getDomesticHotWaterConfiguredTemperature2(), 60)
def test_getReturnTemperature(self):
self.assertEqual(
self.device.getReturnTemperature(), 27.9)
def test_getSupplyTemperaturePrimaryCircuit(self):
self.assertEqual(
self.device.getSupplyTemperaturePrimaryCircuit(), 14.5)
def test_getReturnTemperatureSecondaryCircuit(self):
self.assertEqual(
self.device.getReturnTemperatureSecondaryCircuit(), 27.9)