diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-09-10 10:59:59 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-09-19 12:43:26 +0000 |
commit | 960c84e111111d0b203d6aa16f23552cc9978c99 (patch) | |
tree | 5aaba677b1d1f2cf5cd0de5018501187de116dad /morphlib/morphologyfactory_tests.py | |
parent | fc35b41a0189eb8a43032247cbe7d3cfadf6ded1 (diff) | |
download | morph-960c84e111111d0b203d6aa16f23552cc9978c99.tar.gz |
Turn Morphology.needs_artifact_metadata_cached into a property
This means we can remove some complication from the MorphologyFactory
class.
Diffstat (limited to 'morphlib/morphologyfactory_tests.py')
-rw-r--r-- | morphlib/morphologyfactory_tests.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/morphlib/morphologyfactory_tests.py b/morphlib/morphologyfactory_tests.py index 5692c5f0..52d5f598 100644 --- a/morphlib/morphologyfactory_tests.py +++ b/morphlib/morphologyfactory_tests.py @@ -248,19 +248,6 @@ class MorphologyFactoryTests(unittest.TestCase): self.assertRaises(NotcachedError, self.lmf.get_morphology, 'reponame', 'sha1', 'unreached.morph') - 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) - - def test_arch_is_validated(self): self.lr.arch = 'unknown' self.assertRaises(morphlib.Error, self.mf.get_morphology, |