diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-08-08 10:20:25 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-08-14 13:28:50 +0000 |
commit | 39a0ad8d31d6a39bfa607187b1d76478ccbe2513 (patch) | |
tree | e343a0920dfa76d47c8da96a284312e57627a1a3 /morphlib/buildsystem_tests.py | |
parent | 4984492dc11888ae35452c437d666cb64dce1a87 (diff) | |
download | morph-39a0ad8d31d6a39bfa607187b1d76478ccbe2513.tar.gz |
buildsystem: Generate a Morphology not text
Rather than generating the text of a morphology which is later loaded,
generate a Morphology object and return that.
Diffstat (limited to 'morphlib/buildsystem_tests.py')
-rw-r--r-- | morphlib/buildsystem_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/buildsystem_tests.py b/morphlib/buildsystem_tests.py index 3171366b..56ba64d7 100644 --- a/morphlib/buildsystem_tests.py +++ b/morphlib/buildsystem_tests.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2013 Codethink Limited +# Copyright (C) 2012-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 @@ -49,10 +49,10 @@ class BuildSystemTests(unittest.TestCase): def test_has_install_commands(self): self.assertEqual(self.bs['install-commands'], []) - def test_returns_morphology_text(self): + def test_returns_morphology(self): self.bs.name = 'fake' - text = self.bs.get_morphology_text('foobar') - self.assertTrue(type(text) in (str, unicode)) + morph = self.bs.get_morphology('foobar') + self.assertTrue(morph.__class__.__name__ == 'Morphology') class ManualBuildSystemTests(unittest.TestCase): |