py3: adapt common/db_replicator.py

Another one of those almost-empty patches. This time my excuse is
that this one is needed in a couple of places (account & container).

Change-Id: Ieb8960763c64f88981b68884bfec92c17ebb4708
This commit is contained in:
Pete Zaitcev 2018-10-22 21:41:23 -05:00
parent 6bb8229b75
commit 654187e1fe
2 changed files with 2 additions and 1 deletions

View File

@ -1120,7 +1120,7 @@ class TestDBReplicator(unittest.TestCase):
mount_check=False)
with unit.mock_check_drive(isdir=True):
response = rpc.dispatch(('a',), 'arg')
self.assertEqual('Invalid object type', response.body)
self.assertEqual(b'Invalid object type', response.body)
self.assertEqual(400, response.status_int)
def test_dispatch_drive_not_mounted(self):

View File

@ -54,6 +54,7 @@ commands =
test/unit/common/test_bufferedhttp.py \
test/unit/common/test_constraints.py \
test/unit/common/test_db.py \
test/unit/common/test_db_replicator.py \
test/unit/common/test_daemon.py \
test/unit/common/test_direct_client.py \
test/unit/common/test_exceptions.py \