def test_framecheckaddresses_dest_range(self): with self.assertRaises(HeatmiserResponseError): _check_response_frame_addresses(5, 128, [128, 7, 0, 5, 1, 116, 39])
def test_framecheckaddresses_source_range(self): with self.assertRaises(HeatmiserResponseError): _check_response_frame_addresses(33, 129, [129, 7, 0, 33, 1, 116, 39])
def test_framecheckaddresses_dest(self): with self.assertRaises(HeatmiserResponseError): _check_response_frame_addresses(5, 1, self.goodresponsemessage)
def test_framecheckaddresses_source(self): with self.assertRaises(HeatmiserResponseError): _check_response_frame_addresses(1, 129, self.goodresponsemessage)
def test_framecheckaddresses_good(self): _check_response_frame_addresses(5, 129, self.goodresponsemessage)