aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-02-27 18:54:37 +0100
committerMatěj Cepl <mcepl@redhat.com>2012-02-27 18:54:37 +0100
commitd9f2aa1f9d1066a168700c4e356db4f26772468a (patch)
treeafe42448063640b6b822e95c032fd649a6be353d /test/test_reader.py
parenta9adb2cae3d62d95a1fdc57d7137dca5e5b9ada9 (diff)
downloadyamlish-d9f2aa1f9d1066a168700c4e356db4f26772468a.tar.gz
Temporary commit to make files available
Diffstat (limited to 'test/test_reader.py')
-rw-r--r--test/test_reader.py12
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()