def test_write_fill_values():
 out = StringIO()
 ascii.write(dat, out, Writer=ascii.FixedWidth, fill_values=('a', 'N/A'))
 assert_equal_splitlines(out.getvalue(), '| Col1 |      Col2 | Col3 | Col4 |\n|  1.2 |   "hello" |    1 |  N/A |\n|  2.4 | \'s worlds |    2 |    2 |\n')

def test_write_fill_values ( ) : out = StringIO ( ) ascii . write ( dat , out , Writer = ascii . FixedWidth , fill_values = ( 'a' , 'N/A' ) ) assert_equal_splitlines ( out . getvalue ( ) , '| Col1 |      Col2 | Col3 | Col4 |\n|  1.2 |   "hello" |    1 |  N/A |\n|  2.4 | \'s worlds |    2 |    2 |\n' )
write a table as a normal fixed width table .