Example #1
0
    def test_client_disconnected_signal(self):
        """
        Test that the client is marked as being disconnected when the
        client_disconnected signal is fired.
        """
        client_disconnected.send(sender=Client, client=self.client_obj)

        self.assertEqual(self.client_obj.status.connected, False)
Example #2
0
 def disconnected(self):
     client_disconnected.send(sender=self.client_obj, client=self.client_obj)