diff --git a/os_api_ref/tests/test_basic_example.py b/os_api_ref/tests/test_basic_example.py
index 20a4fad..dcfb7d7 100644
--- a/os_api_ref/tests/test_basic_example.py
+++ b/os_api_ref/tests/test_basic_example.py
@@ -94,7 +94,7 @@ class TestBasicExample(base.TestCase):
# TODO(stephenfin): Drop support for this once we drop support for both
# Python 2.7 and Sphinx < 2.0, likely in "U"
if sphinx.version_info >= (2, 0, 0):
- table = """
+ table = """
@@ -115,7 +115,8 @@ class TestBasicExample(base.TestCase):
The name of things |
-
"""
+
""".format('center' if sphinx.version_info < (2, 1, 0)
+ else 'default')
else:
table = """
@@ -147,7 +148,7 @@ class TestBasicExample(base.TestCase):
# TODO(stephenfin): Drop support for this once we drop support for both
# Python 2.7 and Sphinx < 2.0, likely in "U"
if sphinx.version_info >= (2, 0, 0):
- success_table = """
+ success_table = """
@@ -168,9 +169,10 @@ class TestBasicExample(base.TestCase):
Resource was created and is ready to use. |
-
"""
+
""".format('center' if sphinx.version_info < (2, 1, 0)
+ else 'default')
- error_table = """
+ error_table = """
@@ -200,7 +202,8 @@ class TestBasicExample(base.TestCase):
There is already a zone with this name. |
-
"""
+
""".format('center' if sphinx.version_info < (2, 1, 0)
+ else 'default')
else:
success_table = """table border="1" class="docutils">
diff --git a/os_api_ref/tests/test_microversions.py b/os_api_ref/tests/test_microversions.py
index 11f3636..9aa4bf2 100644
--- a/os_api_ref/tests/test_microversions.py
+++ b/os_api_ref/tests/test_microversions.py
@@ -58,7 +58,7 @@ class TestMicroversions(base.TestCase):
"""Test that min / max mv css class attributes are set in params"""
if sphinx.version_info >= (2, 0, 0):
table = """
-
+
@@ -95,7 +95,7 @@ class TestMicroversions(base.TestCase):
-""" # noqa
+""".format('center' if sphinx.version_info < (2, 1, 0) else 'default') # noqa
else:
table = """