diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-02-27 18:54:37 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-02-27 18:54:37 +0100 |
commit | d9f2aa1f9d1066a168700c4e356db4f26772468a (patch) | |
tree | afe42448063640b6b822e95c032fd649a6be353d /test/test_reader.py | |
parent | a9adb2cae3d62d95a1fdc57d7137dca5e5b9ada9 (diff) | |
download | yamlish-d9f2aa1f9d1066a168700c4e356db4f26772468a.tar.gz |
Temporary commit to make files available
Diffstat (limited to 'test/test_reader.py')
-rw-r--r-- | test/test_reader.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test_reader.py b/test/test_reader.py index 79756c9..8c681c8 100644 --- a/test/test_reader.py +++ b/test/test_reader.py @@ -1,5 +1,8 @@ # -*- coding: utf-8 -*- import yaml +import yamlish +import test +import unittest test_data_list = [ { @@ -39,7 +42,7 @@ test_data_list = [ }, { "name": 'Mixed array', - "in": [ '---', '- 1', "- 'two'", r'- "three\n"', '...', ], + "in": [ '---', '- 1', "- 'two'", '- "three\n"', '...', ], "out": [ 1, 'two', "three\n" ], }, { @@ -359,3 +362,10 @@ test_data_list = [ }, }, ] + +class TestReader(unittest.TestCase): # IGNORE:C0111 + pass + +if __name__ == "__main__": + test.generate_testsuite(test_data_list, TestReader, yamlish.load) + unittest.main() |