Update tests for more recent sphinx

The html output now uses a more compact form for empty col elements.
Update the tests to account for this.

Change-Id: I055254463e48cc8fdd44c4de7c39595a574afa47
This commit is contained in:
Monty Taylor 2017-05-12 13:54:55 -05:00
parent dea2b803ff
commit 32101d84c1
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 12 additions and 12 deletions

View File

@ -78,10 +78,10 @@ class TestBasicExample(base.TestCase):
table = """<table border="1" class="docutils">
<colgroup>
<col width="20%"></col>
<col width="10%"></col>
<col width="10%"></col>
<col width="60%"></col>
<col width="20%"/>
<col width="10%"/>
<col width="10%"/>
<col width="60%"/>
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
@ -105,8 +105,8 @@ class TestBasicExample(base.TestCase):
success_table = """table border="1" class="docutils">
<colgroup>
<col width="30%"></col>
<col width="70%"></col>
<col width="30%"/>
<col width="70%"/>
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Code</th>
@ -129,8 +129,8 @@ class TestBasicExample(base.TestCase):
error_table = """<table border="1" class="docutils">
<colgroup>
<col width="30%"></col>
<col width="70%"></col>
<col width="30%"/>
<col width="70%"/>
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Code</th>

View File

@ -58,10 +58,10 @@ class TestMicroversions(base.TestCase):
table = """<div class="api-detail collapse section" id="list-servers-detail">
<table border="1" class="docutils">
<colgroup>
<col width="20%"></col>
<col width="10%"></col>
<col width="10%"></col>
<col width="60%"></col>
<col width="20%"/>
<col width="10%"/>
<col width="10%"/>
<col width="60%"/>
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>