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