diff options
author | Peter Razumovsky <prazumovsky@mirantis.com> | 2014-12-04 15:23:26 +0300 |
---|---|---|
committer | Peter Razumovsky <prazumovsky@mirantis.com> | 2014-12-08 16:47:19 +0300 |
commit | 715010f40aa5966e0766569adbd6ca9ed0d2c8fa (patch) | |
tree | 3314a978ebab96f7158fdafcf66eb77aa3c71dce /heat/tests/test_parameters.py | |
parent | 0d3f27b9eae5c521651d272a17b2d559fc049edc (diff) | |
download | heat-715010f40aa5966e0766569adbd6ca9ed0d2c8fa.tar.gz |
Convert unicode to six.text_type in heat/tests
This patch converts unicode to six.text_type in heat/tests
for python 3.x compatibility.
Change-Id: I2e7553ee3486e03c6a9bc0c2a022f99d6298257b
Diffstat (limited to 'heat/tests/test_parameters.py')
-rw-r--r-- | heat/tests/test_parameters.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/tests/test_parameters.py b/heat/tests/test_parameters.py index 69fe06fbc..ae90dd9f7 100644 --- a/heat/tests/test_parameters.py +++ b/heat/tests/test_parameters.py @@ -361,7 +361,7 @@ class ParameterTest(testtools.TestCase): schema = {'Type': 'Boolean'} err = self.assertRaises(exception.StackValidationFailed, self.new_parameter, 'bo', schema, 'foo') - self.assertIn("Unrecognized value 'foo'", unicode(err)) + self.assertIn("Unrecognized value 'foo'", six.text_type(err)) def test_missing_param(self): '''Test missing user parameter.''' @@ -376,7 +376,7 @@ class ParameterTest(testtools.TestCase): self.new_parameter, 'testparam', schema, '234') expected = 'Parameter \'testparam\' is invalid: '\ '"234" does not match pattern "[a-z]*"' - self.assertEqual(expected, unicode(err)) + self.assertEqual(expected, six.text_type(err)) params_schema = json.loads('''{ |