def test_query_for_1_2_features(self): """ L2CAP/COS/IEX/BV-01-C [Query for 1.2 Features] """ self._setup_link_from_cert() control_channel = self.cert_l2cap.get_control_channel() control_channel.send_extended_features_request() assertThat(control_channel).emits( L2capMatchers.InformationResponseExtendedFeatures())
def test_extended_feature_info_response_fixed_channels(self): """ L2CAP/EXF/BV-05-C """ self._setup_link_from_cert() control_channel = self.cert_l2cap.get_control_channel() control_channel.send_extended_features_request() assertThat(control_channel).emits( L2capMatchers.InformationResponseExtendedFeatures( supports_fixed_channels=True))
def test_extended_feature_info_response_fcs(self): """ L2CAP/EXF/BV-03-C [Extended Features Information Response for FCS Option] Note: This is not mandated by L2CAP Spec """ self._setup_link_from_cert() control_channel = self.cert_l2cap.get_control_channel() control_channel.send_extended_features_request() assertThat(control_channel).emits( L2capMatchers.InformationResponseExtendedFeatures( supports_fcs=True))
def test_extended_feature_info_response_streaming(self): """ L2CAP/EXF/BV-02-C """ asserts.skip("Streaming not supported") self._setup_link_from_cert() control_channel = self.cert_l2cap.get_control_channel() control_channel.send_extended_features_request() assertThat(control_channel).emits( L2capMatchers.InformationResponseExtendedFeatures( supports_streaming=True))
def test_extended_feature_info_response_ertm(self): """ L2CAP/EXF/BV-01-C [Extended Features Information Response for Enhanced Retransmission Mode] """ self._setup_link_from_cert() control_channel = self.cert_l2cap.get_control_channel() control_channel.send_extended_features_request() assertThat(control_channel).emits( L2capMatchers.InformationResponseExtendedFeatures( supports_ertm=True))