From d8c457c07b22b16290878150a22f22330964f843 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Thu, 19 Aug 2010 15:42:53 +0200 Subject: Fixed the last failing test (stupid line ending bug). --- tests/test_rst_tables.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_rst_tables.py b/tests/test_rst_tables.py index 381adf8..eac65fe 100644 --- a/tests/test_rst_tables.py +++ b/tests/test_rst_tables.py @@ -213,9 +213,12 @@ a line ending. reformat_table() self.assertEquals(expect, vim.current.buffer) - def notestCreateComplexTable(self): + def testCreateComplexTable(self): raw_lines = self.read_fixture('multiline-cells') - expect = """ + # strip off the last (empty) line from raw_lines (since that line does + # not belong to the table + del raw_lines[-1] + expect = """\ +================+===============================================================+ | Feature | Description | +================+===============================================================+ @@ -229,5 +232,5 @@ a line ending. +----------------+---------------------------------------------------------------+ | | habitasse platea dictumst. Phasellus pretium iaculis. | +----------------+---------------------------------------------------------------+ -""".strip().split('\n') +""".rstrip().split('\n') self.assertEquals(expect, draw_table(parse_table(raw_lines))) -- cgit v1.2.3