From 225e7ff0c552b50ed7b607e51fb0980ac8e5a1c9 Mon Sep 17 00:00:00 2001 From: Sergey Novikov Date: Thu, 1 Sep 2016 13:30:17 +0300 Subject: [PATCH] Convert all strings into unicode in services reconfiguration module Change-Id: I748a6832549a7b634ef89150fae42b7de62b639a Closes-Bug: #1616086 --- fuelweb_test/tests/test_services_reconfiguration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fuelweb_test/tests/test_services_reconfiguration.py b/fuelweb_test/tests/test_services_reconfiguration.py index 4422ebc0d..08695fb84 100644 --- a/fuelweb_test/tests/test_services_reconfiguration.py +++ b/fuelweb_test/tests/test_services_reconfiguration.py @@ -12,6 +12,8 @@ # License for the specific language governing permissions and limitations # under the License. +from __future__ import unicode_literals + import random import time import traceback @@ -242,8 +244,8 @@ class ServicesReconfiguration(TestBasic): cmd="mount", auth=cirros_auth ) - asserts.assert_true('/mnt type {0}'.format(fs_type) - in res['stdout'], + test_substr = '/mnt type {0}'.format(fs_type) + asserts.assert_true(test_substr in res['stdout_str'], "Ephemeral disk format was not " "changed on instance. " "Please, see details: {0}".format(res))