summaryrefslogtreecommitdiff
path: root/morphlib/morphologyfactory_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-19 13:38:44 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-07-19 13:46:14 +0100
commitdf8eda23514d8a6490c8a891f7deb5fcb9ad856c (patch)
tree6c7166ccc2a5c2676b51ae514a6e1825e9a717ec /morphlib/morphologyfactory_tests.py
parent296525497eddba5dc40288188a0d71248ab14366 (diff)
downloadmorph-df8eda23514d8a6490c8a891f7deb5fcb9ad856c.tar.gz
Set Morphology.needs_artifact_metadata_cached
Diffstat (limited to 'morphlib/morphologyfactory_tests.py')
-rw-r--r--morphlib/morphologyfactory_tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/morphlib/morphologyfactory_tests.py b/morphlib/morphologyfactory_tests.py
index 4aa3c018..91768843 100644
--- a/morphlib/morphologyfactory_tests.py
+++ b/morphlib/morphologyfactory_tests.py
@@ -209,3 +209,15 @@ class MorphologyFactoryTests(unittest.TestCase):
morph = self.mf.get_morphology('reponame', 'sha1', 'system.morph')
self.assertEqual(morph.needs_staging_area, False)
+ def test_does_not_set_needs_artifact_metadata_cached_for_chunk(self):
+ morph = self.mf.get_morphology('reponame', 'sha1', 'chunk.morph')
+ self.assertEqual(morph.needs_artifact_metadata_cached, False)
+
+ def test_sets_artifact_metadata_cached_for_stratum(self):
+ morph = self.mf.get_morphology('reponame', 'sha1', 'stratum.morph')
+ self.assertEqual(morph.needs_artifact_metadata_cached, True)
+
+ def test_does_not_set_artifact_metadata_cached_for_system(self):
+ morph = self.mf.get_morphology('reponame', 'sha1', 'system.morph')
+ self.assertEqual(morph.needs_artifact_metadata_cached, False)
+