From f040767a9d33add24af341a911533013697d68ea Mon Sep 17 00:00:00 2001 From: Mekhla Kapoor <54870020+mekhlakapoor@users.noreply.github.com> Date: Mon, 13 May 2024 17:39:12 -0700 Subject: [PATCH] adds test case --- tests/labtracks/test_response_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/labtracks/test_response_handler.py b/tests/labtracks/test_response_handler.py index 3a42a67d..7cdfa313 100644 --- a/tests/labtracks/test_response_handler.py +++ b/tests/labtracks/test_response_handler.py @@ -277,6 +277,7 @@ def test_map_housing(self): housing2 = Housing.model_construct(room_id="000") housing3 = Housing.model_construct(cage_id="1234") housing4 = Housing.model_construct(room_id="000", cage_id="1234") + housing5 = Housing.model_construct(room_id="123", cage_id="456") subject_housing1 = self.rh._map_housing( room_id="-99999999999", cage_id=None @@ -284,11 +285,13 @@ def test_map_housing(self): subject_housing2 = self.rh._map_housing(room_id="000", cage_id=None) subject_housing3 = self.rh._map_housing(room_id=None, cage_id="1234") subject_housing4 = self.rh._map_housing(room_id="000", cage_id="1234") + subject_housing5 = self.rh._map_housing(room_id=123, cage_id=456) self.assertIsNone(subject_housing1) self.assertEqual(subject_housing2, housing2) self.assertEqual(subject_housing3, housing3) self.assertEqual(subject_housing4, housing4) + self.assertEqual(subject_housing5, housing5) if __name__ == "__main__":