tests: Added a very simple unit test for unicode in Elm Entry
This commit is contained in:
parent
ab778fc86b
commit
d8613c88f8
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
import unittest
|
||||
|
||||
from efl.eo import Eo
|
||||
from efl import elementary
|
||||
from efl.elementary.window import Window, ELM_WIN_BASIC
|
||||
from efl.elementary.entry import Entry
|
||||
|
||||
elementary.init()
|
||||
|
||||
class TestElmBasics(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.o = Window("t", ELM_WIN_BASIC)
|
||||
|
||||
def tearDown(self):
|
||||
self.o.delete()
|
||||
|
||||
def testEntryUnicode(self):
|
||||
o = Entry(self.o)
|
||||
t = u"aöäöäa"
|
||||
o.text = t
|
||||
self.assertEqual(o.text, t)
|
||||
o.delete()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(verbosity=2)
|
||||
elementary.shutdown()
|
Loading…
Reference in New Issue