def test_write_no_multicols():
 col1 = [1, 2, 3]
 col2 = [(1.0, 1.0), (2.0, 2.0), (3.0, 3.0)]
 col3 = [('a', 'a', 'a'), ('b', 'b', 'b'), ('c', 'c', 'c')]
 table = Table([col1, col2, col3], names=('C1', 'C2', 'C3'))
 expected = '<html>\n <head>\n  <meta charset="utf-8"/>\n  <meta content="text/html;charset=UTF-8" http-equiv="Content-type"/>\n </head>\n <body>\n  <table>\n   <thead>\n    <tr>\n     <th>C1</th>\n     <th>C2</th>\n     <th>C3</th>\n    </tr>\n   </thead>\n   <tr>\n    <td>1</td>\n    <td>1.0 .. 1.0</td>\n    <td>a .. a</td>\n   </tr>\n   <tr>\n    <td>2</td>\n    <td>2.0 .. 2.0</td>\n    <td>b .. b</td>\n   </tr>\n   <tr>\n    <td>3</td>\n    <td>3.0 .. 3.0</td>\n    <td>c .. c</td>\n   </tr>\n  </table>\n </body>\n</html>\n    '
 assert (html.HTML({'multicol': False}).write(table)[0].strip() == expected.strip())

def test_write_no_multicols ( ) : col1 = [ 1 , 2 , 3 ] col2 = [ ( 1.0 , 1.0 ) , ( 2.0 , 2.0 ) , ( 3.0 , 3.0 ) ] col3 = [ ( 'a' , 'a' , 'a' ) , ( 'b' , 'b' , 'b' ) , ( 'c' , 'c' , 'c' ) ] table = Table ( [ col1 , col2 , col3 ] , names = ( 'C1' , 'C2' , 'C3' ) ) expected = '<html>\n <head>\n  <meta charset="utf-8"/>\n  <meta content="text/html;charset=UTF-8" http-equiv="Content-type"/>\n </head>\n <body>\n  <table>\n   <thead>\n    <tr>\n     <th>C1</th>\n     <th>C2</th>\n     <th>C3</th>\n    </tr>\n   </thead>\n   <tr>\n    <td>1</td>\n    <td>1.0 .. 1.0</td>\n    <td>a .. a</td>\n   </tr>\n   <tr>\n    <td>2</td>\n    <td>2.0 .. 2.0</td>\n    <td>b .. b</td>\n   </tr>\n   <tr>\n    <td>3</td>\n    <td>3.0 .. 3.0</td>\n    <td>c .. c</td>\n   </tr>\n  </table>\n </body>\n</html>\n    ' assert ( html . HTML ( { 'multicol' : False } ) . write ( table ) [ 0 ] . strip ( ) == expected . strip ( ) )
test to make sure that the html writer will not use multi-dimensional columns if the multicol parameter is false .