예제 #1
0
파일: tests.py 프로젝트: priestd09/backtrac
    def test_client_connected_signal(self):
        """
        Test that the client is marked as being connected when the
        client_connected signal is fired.
        """
        client_connected.send(sender=Client, client=self.client_obj)

        self.assertEqual(self.client_obj.status.connected, True)
예제 #2
0
 def connected(self):
     client_connected.send(sender=self.client_obj, client=self.client_obj)