Пример #1
0
 def test_slaveof(self):
     '''
     Test to make the server a slave of another instance, or
     promote it as master
     '''
     self.assertEqual(redismod.slaveof('master_host', 'master_port'), 'A')
Пример #2
0
 def test_slaveof(self):
     '''
     Test to make the server a slave of another instance, or
     promote it as master
     '''
     self.assertEqual(redismod.slaveof('master_host', 'master_port'), 'A')
Пример #3
0
 def test_slaveof(self):
     """
     Test to make the server a slave of another instance, or
     promote it as master
     """
     self.assertEqual(redismod.slaveof("master_host", "master_port"), "A")