@pytest.mark.skipif('not HAS_YAML')
def test_write_simple():
 t = simple_table()
 out = StringIO()
 t.write(out, format='ascii.ecsv')
 assert (out.getvalue().splitlines() == SIMPLE_LINES)

@ pytest . mark . skipif ( 'not HAS_YAML' ) def test_write_simple ( ) : t = simple_table ( ) out = StringIO ( ) t . write ( out , format = 'ascii.ecsv' ) assert ( out . getvalue ( ) . splitlines ( ) == SIMPLE_LINES )
write a simple table with common types .