summaryrefslogtreecommitdiff
path: root/morphlib/morphology_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-15 13:17:20 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-15 13:17:20 +0000
commitd68ae94a3d327a07ad6cb06eacac34eb4d6ce408 (patch)
treea66735903b45933afd7f09d95bccbe7eddce239d /morphlib/morphology_tests.py
parent7ec35540d564b6da2e2cbd1f9fa007ece22ef7e3 (diff)
downloadmorph-d68ae94a3d327a07ad6cb06eacac34eb4d6ce408.tar.gz
Fix test case for morphology disk-size field
We now expect the disk size to be an integer (in bytes), since aren't just passing on to qemu-img (we don't use qemu-img anymore).
Diffstat (limited to 'morphlib/morphology_tests.py')
-rw-r--r--morphlib/morphology_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/morphology_tests.py b/morphlib/morphology_tests.py
index 575aaeec..560677b5 100644
--- a/morphlib/morphology_tests.py
+++ b/morphlib/morphology_tests.py
@@ -169,7 +169,7 @@ class MorphologyTests(unittest.TestCase):
]
}'''))
self.assertEqual(morph.kind, 'system')
- self.assertEqual(morph.disk_size, '1G')
+ self.assertEqual(morph.disk_size, 1024**3)
self.assertEqual(morph.strata, ['foo', 'bar'])
self.assertEqual(morph.test_stories, ['test-1', 'test-2'])