Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb59262e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add Disconnect Complete Matcher"

parents 6c317800 a775d5fd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ class HciMatchers(object):
    def Disconnect():
        return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECT)

    @staticmethod
    def DisconnectionComplete():
        return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECTION_COMPLETE)


class NeighborMatchers(object):

+1 −0
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ class CertSecurity(PySecurity):
        """
            Cert side needs to pass
        """
        assertThat(self._hci_event_stream).emits(HciMatchers.DisconnectionComplete())
        pass

    def close(self):