old_contents: """
  test panflute ast to markdown conversion
  """
  from .context import table2csv
  from panflute import *
  import pickle
  
  
  def test_table2csv():
      # get_table_body
      markdown = """| 1 | 2 | 3 | 4 |
  |:--|--:|:-:|---|
  | 1 | 2 | 3 | 4 |
  
  : *abcd*
  """
      Panflute = convert_text(markdown)
      code_block = table2csv(*Panflute, {})
      assert str(code_block) == '''CodeBlock(---
  alignment: LRCD
  caption: '*abcd*'
  header: true
  markdown: true
  table-width: 0
  width: [0, 0, 0, 0]
  ---
  1,2,3,4\r\n1,2,3,4\r\n; classes=['table'])'''
      return
  
new_contents: """
  test panflute ast to markdown conversion
  """
  from .context import table2csv
  from panflute import *
  
  
  def test_table2csv():
      # get_table_body
      markdown = """| 1 | 2 | 3 | 4 |
  |:--|--:|:-:|---|
  | 1 | 2 | 3 | 4 |
  
  : *abcd*
  """
      Panflute = convert_text(markdown)
      code_block = table2csv(*Panflute, {})
      code_block_referenced = CodeBlock('''---
  alignment: LRCD
  caption: '*abcd*'
  header: true
  markdown: true
  table-width: 0
  width: [0, 0, 0, 0]
  ---
  1,2,3,4\r\n1,2,3,4\r\n''', classes=['table'])
      assert repr(code_block) == repr(code_block_referenced)
      return
  
subject: improve test on assertion about a panflute AST in pantable2csv