summaryrefslogtreecommitdiff
path: root/morphlib/yamlparse_tests.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-02-17 15:20:44 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-02-17 15:50:00 +0000
commitbe8ffd80be76c12a268b7199e5e05772f18cd30a (patch)
tree24be39bd8c614e9c96d0ddcb5cc2d78dc05325f5 /morphlib/yamlparse_tests.py
parentd3e386a632cd9a45c74cfcdeb44e1310616c52d5 (diff)
downloadmorph-be8ffd80be76c12a268b7199e5e05772f18cd30a.tar.gz
Legacy morph code: Also dump in specified order
This rips out any remaining order-preserving code and instead uses the yaml dumper from morphloader.
Diffstat (limited to 'morphlib/yamlparse_tests.py')
-rw-r--r--morphlib/yamlparse_tests.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/morphlib/yamlparse_tests.py b/morphlib/yamlparse_tests.py
index f5c2569b..38815168 100644
--- a/morphlib/yamlparse_tests.py
+++ b/morphlib/yamlparse_tests.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2013 Codethink Limited
+# Copyright (C) 2013-2014 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -41,14 +41,6 @@ build-system: manual
('build-system', 'manual'),
])
- def test_loads_as_ordered_dict(self):
- m = yamlparse.load(self.example_text)
- self.assertEqual(type(m), OrderedDict)
-
- def test_dumps_ordered_dicts(self):
- self.assertEqual(self.example_text,
- yamlparse.dump(self.example_dict))
-
def test_non_map_raises(self):
incorrect_type = '''\
!!map