tests: Add tests for tasks with unicode

This commit is contained in:
Tomas Babej 2015-08-09 19:12:42 +02:00
parent a981523d88
commit 4b2514e731
2 changed files with 43 additions and 0 deletions

View file

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from tests.base import IntegrationTest
from time import sleep
@ -136,3 +137,22 @@ class TestViewportInspection(IntegrationTest):
sleep(0.5)
assert self.command(":py print vim.current.buffer", regex="<buffer taskwiki.")
class TestViewportsUnicodeTaskGeneration(IntegrationTest):
viminput = """
=== Work tasks | +work ===
"""
vimoutput = u"""
=== Work tasks | +work ===
* [ ] tag work täsk #{uuid}
"""
tasks = [
dict(description=u"tag work täsk", tags=['work']),
]
def execute(self):
self.command("w", regex="written$", lines=1)