Anki/tests/test_utils.py
2008-09-27 23:50:03 +09:00

18 lines
379 B
Python

# coding: utf-8
import nose, os
from tests.shared import assertException
from anki.errors import *
from anki.facts import *
from anki import DeckStorage
from anki.utils import *
def test_tags():
card = "one, two"
fact = "two,three, two"
cmodel = "four"
assert (sorted(parseTags(mergeTags(card, fact, cmodel))) ==
['four', 'one', 'three', 'two'])