diff options
Diffstat (limited to 'vmdb/tags_tests.py')
-rw-r--r-- | vmdb/tags_tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vmdb/tags_tests.py b/vmdb/tags_tests.py index e4d342a..928b875 100644 --- a/vmdb/tags_tests.py +++ b/vmdb/tags_tests.py @@ -73,6 +73,18 @@ class TagsTests(unittest.TestCase): self.assertEqual(tags.get_dev('first'), None) self.assertEqual(tags.get_mount_point('first'), '/mnt/foo') + def test_mount_point_is_uncached_by_default(self): + tags = vmdb.Tags() + tags.append('first') + tags.set_mount_point('first', '/mnt/foo') + self.assertFalse(tags.is_cached('first')) + + def test_mount_point_can_be_made_cached(self): + tags = vmdb.Tags() + tags.append('first') + tags.set_mount_point('first', '/mnt/foo', cached=True) + self.assertTrue(tags.is_cached('first')) + def test_set_dev_raises_error_for_unknown_tag(self): tags = vmdb.Tags() with self.assertRaises(vmdb.UnknownTag): |