mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 11:32:00 +03:00
29 lines
520 B
Python
29 lines
520 B
Python
#!/usr/bin/env python3
|
|
import unittest
|
|
|
|
from markdown import *
|
|
|
|
|
|
class UtilsTest(unittest.TestCase):
|
|
def test_normalize_table(self):
|
|
src = """\
|
|
| a | b | c|
|
|
|---|---|--|
|
|
| aaaaa | bbbbb | cccc |
|
|
| dd | ee | f |\
|
|
"""
|
|
normalized = """\
|
|
| a | b | c |
|
|
|-------|-------|------|
|
|
| aaaaa | bbbbb | cccc |
|
|
| dd | ee | f |
|
|
"""
|
|
table = Table(content=src)
|
|
table.reformat()
|
|
|
|
self.assertEqual(normalized, table.content)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|