def test_basic_operation_request_connection(self): """ L2CAP/COS/CED/BV-01-C [Request Connection] Verify that the IUT is able to request the connection establishment for an L2CAP data channel and initiate the configuration procedure. """ self._setup_link_from_cert() psm = 0x33 # TODO: Use another test case self.dut.l2cap.OpenChannel( l2cap_facade_pb2.OpenChannelRequest(remote=self.cert_address, psm=psm)) assertThat(self.cert_l2cap.get_control_channel()).emits( L2capMatchers.ConnectionRequest())
def ConnectionRequest(psm): return Capture(L2capMatchers.ConnectionRequest(psm), L2capCaptures._extract_connection_request)