aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_writer.py')
-rw-r--r--test/test_writer.py6
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