cement/tests/ext/test_ext_tabulate.py
2018-03-01 21:23:38 -06:00

16 lines
309 B
Python

from cement.utils.test import TestApp
class TabulateApp(TestApp):
class Meta:
extensions = ['tabulate']
output_handler = 'tabulate'
def test_tabulate():
with TabulateApp() as app:
res = app.render([['John', 'Doe']], headers=['FOO', 'BAR'])
assert res.find('FOO')