summaryrefslogtreecommitdiff
path: root/morphlib/morphologyfactory_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-06-20 12:49:28 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-06-20 12:52:07 +0000
commitdbbaf636b5b169b508703e597eea0eaebe38c439 (patch)
tree0f79733dc44188c615d94862118cb73bca5594cd /morphlib/morphologyfactory_tests.py
parentf26ce8c21fa345f6a922aa33c4adb871163ea5aa (diff)
downloadmorph-dbbaf636b5b169b508703e597eea0eaebe38c439.tar.gz
Fix warnings and test suite
Diffstat (limited to 'morphlib/morphologyfactory_tests.py')
-rw-r--r--morphlib/morphologyfactory_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/morphologyfactory_tests.py b/morphlib/morphologyfactory_tests.py
index dd454a30..b1a6a621 100644
--- a/morphlib/morphologyfactory_tests.py
+++ b/morphlib/morphologyfactory_tests.py
@@ -74,7 +74,7 @@ class FakeLocalRepo(object):
def __init__(self):
self.arch = 'x86_64'
- self.system_kind = 'unknown'
+ self.system_kind = ''
def cat(self, sha1, filename):
if filename in self.morphologies:
@@ -252,8 +252,8 @@ class MorphologyFactoryTests(unittest.TestCase):
morph = self.mf.get_morphology('reponame', 'sha1', 'system.morph')
self.assertEqual(morph['arch'], 'armv7l')
- def test_fails_if_system_does_not_define_system_kind(self):
- self.lr.system_kind = ''
+ def test_fails_if_system_define_system_kind_that_is_not_tarball(self):
+ self.lr.system_kind = 'blahblah'
self.assertRaises(morphlib.Error, self.mf.get_morphology,
'reponame', 'sha1', 'system.morph')