diff options
Diffstat (limited to 'morphlib/buildsystem_tests.py')
-rw-r--r-- | morphlib/buildsystem_tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/morphlib/buildsystem_tests.py b/morphlib/buildsystem_tests.py index b49d30ae..6b6bf30f 100644 --- a/morphlib/buildsystem_tests.py +++ b/morphlib/buildsystem_tests.py @@ -43,6 +43,15 @@ class BuildSystemTests(unittest.TestCase): morph = self.bs.get_morphology('foobar') self.assertTrue(morph.__class__.__name__ == 'Morphology') + def test_construct_from_dict(self): + '''Test parsing a dict of information from a DEFAULTS file.''' + + commands_dict = { + 'configure-commands': 'foo' + } + self.bs.from_dict('test', commands_dict) + self.assertEqual(self.bs.configure_commands, 'foo') + class LookupBuildSystemTests(unittest.TestCase): |