emmental/trackdb/test_tags.py

15 lines
370 B
Python
Raw Normal View History

# Copyright 2021 (c) Anna Schumaker.
from lib import tagstore
from . import tags
import unittest
class TestTags(unittest.TestCase):
def test_tags_init(self):
self.assertIsInstance(tags.Artist, tagstore.TagStore)
def test_tags_reset(self):
tags.Artist.store = {"a" : 1 }
tags.reset()
self.assertEqual(tags.Artist.store, { })