Exemplo n.º 1
0
    def test_ping(self):
        '''
        Test to ping the server, returns False on connection errors
        '''
        self.assertEqual(redismod.ping(), 'A')

        self.assertFalse(redismod.ping())
Exemplo n.º 2
0
    def test_ping(self):
        '''
        Test to ping the server, returns False on connection errors
        '''
        self.assertEqual(redismod.ping(), 'A')

        self.assertFalse(redismod.ping())
Exemplo n.º 3
0
    def test_ping(self):
        """
        Test to ping the server, returns False on connection errors
        """
        self.assertEqual(redismod.ping(), "A")

        self.assertFalse(redismod.ping())