summaryrefslogtreecommitdiff
path: root/service/test/adapter/tag_index_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/adapter/tag_index_test.py')
-rw-r--r--service/test/adapter/tag_index_test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/service/test/adapter/tag_index_test.py b/service/test/adapter/tag_index_test.py
index 7667e8e2..515c9571 100644
--- a/service/test/adapter/tag_index_test.py
+++ b/service/test/adapter/tag_index_test.py
@@ -76,3 +76,12 @@ class TestTagIndex(unittest.TestCase):
def test_remove_does_not_raises_exception_if_key_is_not_present(self):
self.tag_index.remove('not_there')
+
+ def test_removals_are_visible_between_instances_using_same_file(self):
+ tag = Tag('some_tag')
+ self.tag_index.set(tag)
+
+ other_tag_index = TagIndex(self.db_path)
+ other_tag_index.remove('some_tag')
+
+ self.assertIsNone(self.tag_index.get('some_tag'))