From 654187e1feff122ccf9a6d3dead6c86b4f8eb97c Mon Sep 17 00:00:00 2001 From: Pete Zaitcev Date: Mon, 22 Oct 2018 21:41:23 -0500 Subject: [PATCH] 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 --- test/unit/common/test_db_replicator.py | 2 +- tox.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/common/test_db_replicator.py b/test/unit/common/test_db_replicator.py index 09ac8bc28a..6aed29cc60 100644 --- a/test/unit/common/test_db_replicator.py +++ b/test/unit/common/test_db_replicator.py @@ -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): diff --git a/tox.ini b/tox.ini index 87824cf47d..dc17cf2f06 100644 --- a/tox.ini +++ b/tox.ini @@ -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 \