fix cloze test

This commit is contained in:
Damien Elmes 2012-10-23 17:52:48 +09:00
parent bee3422a72
commit 0c1e98d0b2

View file

@ -135,7 +135,7 @@ def test_cloze():
f = d.newNote() f = d.newNote()
f['Text'] = "hello {{c1::world::typical}}" f['Text'] = "hello {{c1::world::typical}}"
assert d.addNote(f) == 1 assert d.addNote(f) == 1
assert "<span class=cloze>[typical...]</span>" in f.cards()[0].q() assert "<span class=cloze>[typical]</span>" in f.cards()[0].q()
assert "<span class=cloze>world</span>" in f.cards()[0].a() assert "<span class=cloze>world</span>" in f.cards()[0].a()
# and with 2 clozes # and with 2 clozes
f = d.newNote() f = d.newNote()