summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-07 12:55:15 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-07 12:55:15 +0300
commitd8613c88f88eb0239c089442b1b67154121ee7af (patch)
treee58a96fec70c7fe53136426af35d3fd72060e69c /tests
parentab778fc86b4c15777ae04c3cec544a03c1661a92 (diff)
tests: Added a very simple unit test for unicode in Elm Entry
Diffstat (limited to 'tests')
-rw-r--r--tests/elementary/test_03_entry.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/elementary/test_03_entry.py b/tests/elementary/test_03_entry.py
new file mode 100644
index 0000000..2b6bf1f
--- /dev/null
+++ b/tests/elementary/test_03_entry.py
@@ -0,0 +1,30 @@
1#!/usr/bin/env python
2# encoding: utf-8
3
4import unittest
5
6from efl.eo import Eo
7from efl import elementary
8from efl.elementary.window import Window, ELM_WIN_BASIC
9from efl.elementary.entry import Entry
10
11elementary.init()
12
13class TestElmBasics(unittest.TestCase):
14
15 def setUp(self):
16 self.o = Window("t", ELM_WIN_BASIC)
17
18 def tearDown(self):
19 self.o.delete()
20
21 def testEntryUnicode(self):
22 o = Entry(self.o)
23 t = u"aöäöäa"
24 o.text = t
25 self.assertEqual(o.text, t)
26 o.delete()
27
28if __name__ == '__main__':
29 unittest.main(verbosity=2)
30 elementary.shutdown()