Permalink
Browse files

update tests for getnodefor

  • Loading branch information...
1 parent 168f286 commit b0fe7885e687e003068fbb8ce2205fe076ee0d37 @salimane committed Sep 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/cluster_commands.py
@@ -49,7 +49,8 @@ def test_dbsize(self):
def test_getnodefor(self):
self.client['bar'] = 'foo'
node = self.client.getnodefor('bar')
- rd = self.client.redises[dictkeys(node)[0]]
+ from redis import StrictRedis
+ rd = StrictRedis(db=4, **config.cluster['nodes'][dictkeys(node)[0]])
self.assertEquals(self.client['bar'], rd['bar'])
def test_get_and_set(self):

0 comments on commit b0fe788

Please sign in to comment.