示例#1
0
 def test_command_reject_reserved_pdu_codes(self):
     """
     Verify that an IUT receiving a PDU with a reserved command code sends a command reject.
     """
     self._setup_link_from_cert()
     self.cert_l2cap.get_control_channel().send(l2cap_packets.MoveChannelRequestBuilder(2, 0, 0))
     assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeCommandReject())
示例#2
0
 def test_reject_connection_parameter_update_request(self):
     """
     Verify that the IUT is able to reject a request for connection parameter update in peripheral mode.
     """
     self._setup_link_from_cert()
     self.cert_l2cap.get_control_channel().send(
         l2cap_packets.ConnectionParameterUpdateRequestBuilder(2, 0x10, 0x10, 0x0a, 0x64))
     assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeCommandReject())
示例#3
0
 def test_reject_unknown_command_in_le_sigling_channel(self):
     """
     Verify that the IUT is able to reject unknown command.
     """
     self._setup_link_from_cert()
     self.cert_l2cap.get_control_channel().send(
         l2cap_packets.InformationRequestBuilder(
             2, l2cap_packets.InformationRequestInfoType.EXTENDED_FEATURES_SUPPORTED))
     assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeCommandReject())