Skip to content

Commit

Permalink
use six.b() in test string
Browse files Browse the repository at this point in the history
  • Loading branch information
damienkilgannon committed May 22, 2017
1 parent 80b734c commit 0238192
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/tests/online.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from mock import MagicMock
import time
import sys
import six

import redis
import argparse
Expand Down Expand Up @@ -128,8 +129,8 @@ def test_purge_old(self):
self.redis_conn.set('default_counter:2015-10', 'stuff2')

tc.purge_old()
self.assertEqual([b'default_counter:2015-10'],
self.redis_conn.keys(tc.get_key() + ':*'))
self.assertEqual([six.b('default_counter:2015-10')],
self.redis_conn.keys(tc.get_key() + ':*'))

self.redis_conn.delete('default_counter:2015-10')

Expand Down

0 comments on commit 0238192

Please sign in to comment.