From 5ee96a1ddfac2646bc6dab2f7d8c7e74276a0b3c Mon Sep 17 00:00:00 2001 From: markus Date: Tue, 20 Oct 2020 16:42:41 +0200 Subject: [PATCH] add test for PeriodicHEPA --- cara/tests/test_known_quantities.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cara/tests/test_known_quantities.py b/cara/tests/test_known_quantities.py index 9c632717..9a0f5711 100644 --- a/cara/tests/test_known_quantities.py +++ b/cara/tests/test_known_quantities.py @@ -96,3 +96,9 @@ def test_periodic_window(periodic_opening_model): ts = [t for t in range(11)] aes = [periodic_opening_model.ventilation.air_exchange(periodic_opening_model.room, t) for t in ts] assert all(ae == (0 if t * 60 % 120 < 105 else 514.74) for ae, t in zip(aes, ts)) + + +def test_periodic_hepa(periodic_hepa_model): + ts = [t for t in range(11)] + aes = [periodic_hepa_model.ventilation.air_exchange(periodic_hepa_model.room, t) for t in ts] + assert all(ae == (0 if t * 60 % 120 < 105 else 514.74) for ae, t in zip(aes, ts))