Commit f0a80014 authored by Matt Clarkson's avatar Matt Clarkson

Issue #3: Tweaks to unit tests to improve coverage.

parent 3ac17e67
......@@ -30,9 +30,9 @@ def test_constructor_fails_if_file_should_be_writable():
def test_setter_getter_loop():
manager = cm.ConfigurationManager("tests/data/FordPrefect.json")
d = manager.get_copy()
m = cm.ConfigurationManager("tests/data/FordPrefect.json", True, True)
d = m.get_copy()
d["researcher"]["name"] = "Ford Anglia"
e = manager.get_copy()
e = m.get_copy()
assert e["researcher"]["name"] == "Ford Anglia"
"researcher": {
"name": "Ford Prefect",
"species": "Betelgeusian",
"relatives": [
"name": "Zaphod Beeblebrox",
"species": "Betelgeusian"
{"researcher": {"species": "Betelgeusian", "name": "Ford Anglia", "relatives": [{"species": "Betelgeusian", "name": "Zaphod Beeblebrox"}]}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment