diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-03-08 19:37:34 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-03-08 19:37:34 +0100 |
commit | 8ac3747446cb2e8b0749e91cb6e6dbf318efe516 (patch) | |
tree | 2ec279889bc9e0365eb4ceccd2dbb3cbac1903b3 /test/test_input.py | |
parent | d9f2aa1f9d1066a168700c4e356db4f26772468a (diff) | |
download | yamlish-8ac3747446cb2e8b0749e91cb6e6dbf318efe516.tar.gz |
All tests succeeding!!!
Diffstat (limited to 'test/test_input.py')
-rw-r--r-- | test/test_input.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_input.py b/test/test_input.py index 6ed6a6f..cfd4142 100644 --- a/test/test_input.py +++ b/test/test_input.py @@ -1,22 +1,22 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import test -import unittest +import unittest2 as unittest import yamlish test_data_list = [ { "name": "Input test", - "in": """--- + "in": r"""--- bill-to: address: city: "Royal Oak" - lines: "458 Walkman Dr.\\nSuite #292\\n" + lines: "458 Walkman Dr.\nSuite #292\n" postal: 48046 state: MI family: Dumars given: Chris -comments: "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338\\n" +comments: "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338\n" date: 2001-01-23 invoice: 34843 product: @@ -72,6 +72,7 @@ total: 4443.52 class TestInput(unittest.TestCase): # IGNORE:C0111 pass +test.generate_testsuite(test_data_list, TestInput, yamlish.load) + if __name__ == "__main__": - test.generate_testsuite(test_data_list, TestInput, yamlish.load) unittest.main() |