Model/epc_data/tests/test_floor_attributes.py
Khalim Conn-Kowlessar 3d395ed5bb refactored floor class
2023-06-13 12:57:40 +01:00

14 lines
639 B
Python

from epc_data.tests.test_data.test_floor_attributes_cases import clean_floor_cases
from epc_data.attributes.FloorAttributes import FloorAttributes
class TestCleanFloor:
def test_clean_floor(self):
for test_case in clean_floor_cases:
result = FloorAttributes(test_case['original_description']).process()
# Ensure the output ordering is correct
expected_result = {key: test_case[key] for key in result.keys()}
expected_result["desc"] = test_case["original_description"]
result["desc"] = test_case["original_description"]
assert result == expected_result