def test_tag_uniqueness(self):
        self.clear_db()
        db.session.add(Tag.get_or_create('cool'))
        db.session.commit()
        tag = Tag.get_or_create('cool')
        db.session.add(tag)
        db.session.commit()
        
        assert_equal(Tag.query.count(), 1)
Test if no duplicate tags are saved in the database
dataset/ETHPy150Open eugenkiss/Simblin/test/test_models.py/TestTags.test_tag_uniqueness