summaryrefslogtreecommitdiff
path: root/morphlib/morph2_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/morph2_tests.py')
-rw-r--r--morphlib/morph2_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/morph2_tests.py b/morphlib/morph2_tests.py
index 7a819556..a2c44753 100644
--- a/morphlib/morph2_tests.py
+++ b/morphlib/morph2_tests.py
@@ -164,6 +164,11 @@ class MorphologyTests(unittest.TestCase):
## Validation tests
+ def test_morphology_must_not_be_empty(self):
+ # Causes crashes if not handled, because code expecting a dict gets
+ # None instead.
+ self.assertRaises(morphlib.YAMLError, Morphology, '')
+
def test_makes_max_jobs_be_an_integer(self):
m = Morphology('''
{