diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-02-27 01:29:51 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-02-27 01:29:51 +0100 |
commit | a9adb2cae3d62d95a1fdc57d7137dca5e5b9ada9 (patch) | |
tree | 276d08dae23004b2ac245dd6613f105a330ab4e6 /test/test_writer.py | |
parent | d44a43f33fa88821b32ab4c505f4cb1b77c15adc (diff) | |
download | yamlish-a9adb2cae3d62d95a1fdc57d7137dca5e5b9ada9.tar.gz |
Reorganization of writer interface.
Also:
* changed license to MIT/X11
* cleanup of some PyLint warnings (mostly missing docstrings)
* make _YamlishLoader a little bit cleaner (don't copy whole SafeLoader
__init__, just subclass it cleanly).
Diffstat (limited to 'test/test_writer.py')
-rw-r--r-- | test/test_writer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_writer.py b/test/test_writer.py index d4ee5ba..0c1b517 100644 --- a/test/test_writer.py +++ b/test/test_writer.py @@ -146,14 +146,14 @@ class TestWriter(unittest.TestCase): name = test['name'] data = test['in'] - got = [] + got = "" # We currently don't throw any exceptions in Writer, so this # this is always false if 'error' in test: - self.assertRaises(test['error'], yamlish.write, test['in']) + self.assertRaises(test['error'], yamlish.dumps, test['in']) else: want = test['out'] - yamlish.write(test['in'], got) + yamlish.dump(test['in'], got) self.assertEqual(got, want, """%s: Result matches expected = %s |