summaryrefslogtreecommitdiff
path: root/morphlib/morphology_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-10-05 12:19:48 +0100
committerLars Wirzenius <liw@liw.fi>2011-10-05 12:19:48 +0100
commit497c85d6930df0bc179403f02de1a36ded705f1c (patch)
tree5023f2630ae810cd75bc53c0cd5613a91a8e7b7d /morphlib/morphology_tests.py
parentc25c7fae299b7ac8fc2e92f4214272aaf3de336b (diff)
downloadmorph-497c85d6930df0bc179403f02de1a36ded705f1c.tar.gz
Add disk_size attribute to morphologies.
Diffstat (limited to 'morphlib/morphology_tests.py')
-rw-r--r--morphlib/morphology_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/morphology_tests.py b/morphlib/morphology_tests.py
index a634937a..145cb944 100644
--- a/morphlib/morphology_tests.py
+++ b/morphlib/morphology_tests.py
@@ -78,12 +78,14 @@ class MorphologyTests(unittest.TestCase):
{
"name": "hello",
"kind": "system",
+ "disk-size": "1G",
"strata": [
"foo",
"bar"
]
}'''))
self.assertEqual(morph.kind, 'system')
+ self.assertEqual(morph.disk_size, '1G')
self.assertEqual(morph.strata, ['foo', 'bar'])